iname and index were swapped around in the logic, which prevented the

optional 'pass in null for index name' to work properly.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1629 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
eric
2005-03-31 19:21:54 +00:00
parent caa2c32c67
commit 35f4dfce5d
@@ -234,11 +234,11 @@ public class JDBCUtil
String cname = rs.getString("COLUMN_NAME");
String iname = rs.getString("INDEX_NAME");
if (iname == null) {
if (index == null) {
if (tname.equals(table) && cname.equals(column)) {
matched = true;
}
} else if (iname.equals(index)) {
} else if (index.equals(iname)) {
matched = true;
}
}