diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-10-12 21:00:58 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-10-12 21:00:58 +0000 |
commit | c43323482b8c93952743469c40c1c631e293c2a2 (patch) | |
tree | 25526ff681805954f4680c0682a2479fe7888051 /src/main/java | |
parent | 8696e1253e84dcc914d5ddbd32160c447a9701bf (diff) |
Stop scanning aliases as soon as table is found.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 5 |
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;
+ }
}
}
|