From eb6724ed8b819f9a751e6fe3bd1057a4e38aa920 Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Mon, 23 Feb 2015 14:30:53 -0800 Subject: [PATCH] Missed a spot. Things worked without this because the DepotMarshaller ends up checking for the existence of the table using its own code... (TODO?) Also JDBCUtil checks the DatabaseMetaData too but the liaison isn't passed to that, would require some refactoring... Actually it seems there are mountains of dead code in JDBCUtil and they could all be removed... --- src/main/java/com/samskivert/depot/impl/jdbc/BaseLiaison.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/depot/impl/jdbc/BaseLiaison.java b/src/main/java/com/samskivert/depot/impl/jdbc/BaseLiaison.java index b5c4b7b..06ea388 100644 --- a/src/main/java/com/samskivert/depot/impl/jdbc/BaseLiaison.java +++ b/src/main/java/com/samskivert/depot/impl/jdbc/BaseLiaison.java @@ -71,7 +71,7 @@ public abstract class BaseLiaison implements DatabaseLiaison // from DatabaseLiaison public boolean tableExists (Connection conn, String name) throws SQLException { - ResultSet rs = conn.getMetaData().getTables(null, null, name, null); + ResultSet rs = conn.getMetaData().getTables(null, getSchemaName(), name, null); while (rs.next()) { String tname = rs.getString("TABLE_NAME"); if (name.equals(tname)) {