Fix bugs with mysql casing and update version to 1.13
Hook battery / PR-target hook battery (push) Successful in 11s
Hook battery / PR-target hook battery (push) Successful in 11s
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<groupId>com.samskivert</groupId>
|
||||
<artifactId>samskivert</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.12-SNAPSHOT</version>
|
||||
<version>1.13</version>
|
||||
|
||||
<name>samskivert</name>
|
||||
<description>A collection of Java utilities.</description>
|
||||
|
||||
@@ -72,7 +72,7 @@ public abstract class BaseLiaison implements DatabaseLiaison
|
||||
ResultSet rs = conn.getMetaData().getTables(null, null, name, null);
|
||||
while (rs.next()) {
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
if (name.equals(tname)) {
|
||||
if (name.equalsIgnoreCase(tname)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public abstract class BaseLiaison implements DatabaseLiaison
|
||||
while (rs.next()) {
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
String cname = rs.getString("COLUMN_NAME");
|
||||
if (tname.equals(table) && cname.equals(column)) {
|
||||
if (tname.equalsIgnoreCase(table) && cname.equalsIgnoreCase(column)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public abstract class BaseLiaison implements DatabaseLiaison
|
||||
while (rs.next()) {
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
String iname = rs.getString("INDEX_NAME");
|
||||
if (tname.equals(table) && index.equals(iname)) {
|
||||
if (tname.equalsIgnoreCase(table) && index.equalsIgnoreCase(iname)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ public class JDBCUtil
|
||||
ResultSet rs = conn.getMetaData().getTables(conn.getCatalog(), null, name, null);
|
||||
while (rs.next()) {
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
if (name.equals(tname)) {
|
||||
if (name.equalsIgnoreCase(tname)) {
|
||||
matched = true;
|
||||
}
|
||||
}
|
||||
@@ -338,7 +338,7 @@ public class JDBCUtil
|
||||
while (rs.next()) {
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
String cname = rs.getString("COLUMN_NAME");
|
||||
if (tname.equals(table) && cname.equals(column)) {
|
||||
if (tname.equalsIgnoreCase(table) && cname.equalsIgnoreCase(column)) {
|
||||
matched = true;
|
||||
}
|
||||
}
|
||||
@@ -362,10 +362,10 @@ public class JDBCUtil
|
||||
String cname = rs.getString("COLUMN_NAME");
|
||||
String iname = rs.getString("INDEX_NAME");
|
||||
if (index == null) {
|
||||
if (tname.equals(table) && cname.equals(column)) {
|
||||
if (tname.equalsIgnoreCase(table) && cname.equalsIgnoreCase(column)) {
|
||||
matched = true;
|
||||
}
|
||||
} else if (index.equals(iname)) {
|
||||
} else if (index.equalsIgnoreCase(iname)) {
|
||||
matched = true;
|
||||
}
|
||||
}
|
||||
@@ -383,7 +383,7 @@ public class JDBCUtil
|
||||
while (rs.next()) {
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
String cname = rs.getString("COLUMN_NAME");
|
||||
if (tname.equals(table) && cname.equals(column)) {
|
||||
if (tname.equalsIgnoreCase(table) && cname.equalsIgnoreCase(column)) {
|
||||
matched = true;
|
||||
}
|
||||
}
|
||||
@@ -402,7 +402,7 @@ public class JDBCUtil
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
String cname = rs.getString("COLUMN_NAME");
|
||||
String iname = rs.getString("INDEX_NAME");
|
||||
if (tname.equals(table) && cname.equals(column)) {
|
||||
if (tname.equalsIgnoreCase(table) && cname.equalsIgnoreCase(column)) {
|
||||
return iname;
|
||||
}
|
||||
}
|
||||
@@ -635,7 +635,7 @@ public class JDBCUtil
|
||||
while (rs.next()) {
|
||||
String tname = rs.getString("TABLE_NAME");
|
||||
String cname = rs.getString("COLUMN_NAME");
|
||||
if (tname.equals(table) && cname.equals(column)) {
|
||||
if (tname.equalsIgnoreCase(table) && cname.equalsIgnoreCase(column)) {
|
||||
return rs;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user