Fix checking for table existence on SQL storage types (#2864)

This commit is contained in:
Federico López authored and GitHub committed 2021-01-29 09:34:55 +00:00
1 parent 8043b84dc4
commit d12be01ecd
1 file changed
+1 -1
@@ -980,7 +980,7 @@ public class SqlStorage implements StorageImplementation {
}
private static boolean tableExists(Connection connection, String table) throws SQLException {
try (ResultSet rs = connection.getMetaData().getTables(null, null, "%", null)) {
try (ResultSet rs = connection.getMetaData().getTables(connection.getCatalog(), null, "%", null)) {
while (rs.next()) {
if (rs.getString(3).equalsIgnoreCase(table)) {
return true;