Let's fix all these other spots too.

This commit is contained in:
Michael Bayne
2025-01-20 14:55:46 -08:00
parent 5396a98410
commit fad635b54b
@@ -334,7 +334,7 @@ public class JDBCUtil
throws SQLException
{
boolean matched = false;
ResultSet rs = conn.getMetaData().getColumns("", "", table, column);
ResultSet rs = conn.getMetaData().getColumns(null, null, table, column);
while (rs.next()) {
String tname = rs.getString("TABLE_NAME");
String cname = rs.getString("COLUMN_NAME");
@@ -356,7 +356,7 @@ public class JDBCUtil
throws SQLException
{
boolean matched = false;
ResultSet rs = conn.getMetaData().getIndexInfo("", "", table, false, true);
ResultSet rs = conn.getMetaData().getIndexInfo(null, null, table, false, true);
while (rs.next()) {
String tname = rs.getString("TABLE_NAME");
String cname = rs.getString("COLUMN_NAME");
@@ -379,7 +379,7 @@ public class JDBCUtil
throws SQLException
{
boolean matched = false;
ResultSet rs = conn.getMetaData().getPrimaryKeys("", "", table);
ResultSet rs = conn.getMetaData().getPrimaryKeys(null, null, table);
while (rs.next()) {
String tname = rs.getString("TABLE_NAME");
String cname = rs.getString("COLUMN_NAME");
@@ -397,7 +397,7 @@ public class JDBCUtil
String column)
throws SQLException
{
ResultSet rs = conn.getMetaData().getIndexInfo("", "", table, false, true);
ResultSet rs = conn.getMetaData().getIndexInfo(null, null, table, false, true);
while (rs.next()) {
String tname = rs.getString("TABLE_NAME");
String cname = rs.getString("COLUMN_NAME");
@@ -631,7 +631,7 @@ public class JDBCUtil
protected static ResultSet getColumnMetaData (Connection conn, String table, String column)
throws SQLException
{
ResultSet rs = conn.getMetaData().getColumns("", "", table, column);
ResultSet rs = conn.getMetaData().getColumns(null, null, table, column);
while (rs.next()) {
String tname = rs.getString("TABLE_NAME");
String cname = rs.getString("COLUMN_NAME");