|
|
@ -60,7 +60,7 @@ public class MysqlUpgradeDao extends UpgradeDao { |
|
|
|
Connection conn = null; |
|
|
|
Connection conn = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
conn = dataSource.getConnection(); |
|
|
|
conn = dataSource.getConnection(); |
|
|
|
rs = conn.getMetaData().getTables(null, null, tableName, null); |
|
|
|
rs = conn.getMetaData().getTables(conn.getCatalog(), conn.getSchema(), tableName, null); |
|
|
|
return rs.next(); |
|
|
|
return rs.next(); |
|
|
|
} catch (SQLException e) { |
|
|
|
} catch (SQLException e) { |
|
|
|
logger.error(e.getMessage(),e); |
|
|
|
logger.error(e.getMessage(),e); |
|
|
@ -82,7 +82,7 @@ public class MysqlUpgradeDao extends UpgradeDao { |
|
|
|
Connection conn = null; |
|
|
|
Connection conn = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
conn = dataSource.getConnection(); |
|
|
|
conn = dataSource.getConnection(); |
|
|
|
ResultSet rs = conn.getMetaData().getColumns(null,null,tableName,columnName); |
|
|
|
ResultSet rs = conn.getMetaData().getColumns(conn.getCatalog(), conn.getSchema(),tableName,columnName); |
|
|
|
return rs.next(); |
|
|
|
return rs.next(); |
|
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
} catch (SQLException e) { |
|
|
|