summaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-10-12 21:00:58 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-10-12 21:00:58 +0000
commitc43323482b8c93952743469c40c1c631e293c2a2 (patch)
tree25526ff681805954f4680c0682a2479fe7888051 /src/main/java/com
parent8696e1253e84dcc914d5ddbd32160c447a9701bf (diff)
Stop scanning aliases as soon as table is found.
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
index 7ea8ef4..a12e0c9 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
@@ -208,6 +208,11 @@ public class JDBCStorableIntrospector extends StorableIntrospector {
} finally {
rs.close();
}
+
+ if (tableName != null) {
+ // Found a match, so stop checking aliases.
+ break;
+ }
}
}