Skip to content
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

Closed

Conversation

alexradzin
Copy link
Collaborator

No description provided.

@alexradzin alexradzin requested a review from a team as a code owner April 4, 2024 22:03
@alexradzin alexradzin force-pushed the FIR-32148-resultset-getters-case-insensitive branch from e05d352 to 1175c06 Compare April 10, 2024 15:46
Copy link

Copy link
Contributor

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.

Comment on lines +178 to +179
String catalogClause = catalog == null ? null : format("%s LIKE '%s'", TABLE_CATALOG, catalog);
String schemaClause = schemaPattern == null ? null : format("TABLE_SCHEMA LIKE '%s'", schemaPattern);
Copy link
Contributor

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?

Comment on lines +181 to +183
if (where.isEmpty()) {
where = " WHERE " + where;
}
Copy link
Contributor

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));
Copy link
Contributor

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.

@alexradzin alexradzin closed this Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants