-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fir 32148 resultset getters case insensitive #374
Conversation
e05d352
to
1175c06
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a result of rebase going wrong? Let's make sure this is corrected before merge.
String catalogClause = catalog == null ? null : format("%s LIKE '%s'", TABLE_CATALOG, catalog); | ||
String schemaClause = schemaPattern == null ? null : format("TABLE_SCHEMA LIKE '%s'", schemaPattern); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should TABLE_SCHEMA
also be a constant like TABLE_CATALOG
?
if (where.isEmpty()) { | ||
where = " WHERE " + where; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this if be an inverse instead? Otherwise if where is empty we're creating a broken SQL.
int n = rsmd.getColumnCount(); | ||
for (int i = 1; i <= n; i++) { | ||
String columnName = rsmd.getColumnName(i); | ||
System.out.println(columnName + ", " + rsmd.getColumnType(i)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not print in tests to avoid unnecessary output.
No description provided.