From c43323482b8c93952743469c40c1c631e293c2a2 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Thu, 12 Oct 2006 21:00:58 +0000 Subject: Stop scanning aliases as soon as table is found. --- .../com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; + } } } -- cgit v1.2.3