Let's fix all these other spots too.
This commit is contained in:
@@ -334,7 +334,7 @@ public class JDBCUtil
|
|||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
boolean matched = false;
|
boolean matched = false;
|
||||||
ResultSet rs = conn.getMetaData().getColumns("", "", table, column);
|
ResultSet rs = conn.getMetaData().getColumns(null, null, table, column);
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
String tname = rs.getString("TABLE_NAME");
|
String tname = rs.getString("TABLE_NAME");
|
||||||
String cname = rs.getString("COLUMN_NAME");
|
String cname = rs.getString("COLUMN_NAME");
|
||||||
@@ -356,7 +356,7 @@ public class JDBCUtil
|
|||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
boolean matched = false;
|
boolean matched = false;
|
||||||
ResultSet rs = conn.getMetaData().getIndexInfo("", "", table, false, true);
|
ResultSet rs = conn.getMetaData().getIndexInfo(null, null, table, false, true);
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
String tname = rs.getString("TABLE_NAME");
|
String tname = rs.getString("TABLE_NAME");
|
||||||
String cname = rs.getString("COLUMN_NAME");
|
String cname = rs.getString("COLUMN_NAME");
|
||||||
@@ -379,7 +379,7 @@ public class JDBCUtil
|
|||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
boolean matched = false;
|
boolean matched = false;
|
||||||
ResultSet rs = conn.getMetaData().getPrimaryKeys("", "", table);
|
ResultSet rs = conn.getMetaData().getPrimaryKeys(null, null, table);
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
String tname = rs.getString("TABLE_NAME");
|
String tname = rs.getString("TABLE_NAME");
|
||||||
String cname = rs.getString("COLUMN_NAME");
|
String cname = rs.getString("COLUMN_NAME");
|
||||||
@@ -397,7 +397,7 @@ public class JDBCUtil
|
|||||||
String column)
|
String column)
|
||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
ResultSet rs = conn.getMetaData().getIndexInfo("", "", table, false, true);
|
ResultSet rs = conn.getMetaData().getIndexInfo(null, null, table, false, true);
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
String tname = rs.getString("TABLE_NAME");
|
String tname = rs.getString("TABLE_NAME");
|
||||||
String cname = rs.getString("COLUMN_NAME");
|
String cname = rs.getString("COLUMN_NAME");
|
||||||
@@ -631,7 +631,7 @@ public class JDBCUtil
|
|||||||
protected static ResultSet getColumnMetaData (Connection conn, String table, String column)
|
protected static ResultSet getColumnMetaData (Connection conn, String table, String column)
|
||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
ResultSet rs = conn.getMetaData().getColumns("", "", table, column);
|
ResultSet rs = conn.getMetaData().getColumns(null, null, table, column);
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
String tname = rs.getString("TABLE_NAME");
|
String tname = rs.getString("TABLE_NAME");
|
||||||
String cname = rs.getString("COLUMN_NAME");
|
String cname = rs.getString("COLUMN_NAME");
|
||||||
|
|||||||
Reference in New Issue
Block a user