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...
This commit is contained in:
@@ -71,7 +71,7 @@ public abstract class BaseLiaison implements DatabaseLiaison
|
|||||||
// from DatabaseLiaison
|
// from DatabaseLiaison
|
||||||
public boolean tableExists (Connection conn, String name) throws SQLException
|
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()) {
|
while (rs.next()) {
|
||||||
String tname = rs.getString("TABLE_NAME");
|
String tname = rs.getString("TABLE_NAME");
|
||||||
if (name.equals(tname)) {
|
if (name.equals(tname)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user