-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add db-specific quoting for non-simple names in AbstractJbdcSource #1833
Conversation
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.
Looks good.
* @return quoted identifier | ||
* @throws SQLException throws if there are any issues fulling the quoting metadata from the db. | ||
*/ | ||
public static String enquoteIdentifier(Connection connection, String identifier) throws SQLException { |
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.
why not call it quoteIdentifier?
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.
i was matching the names that jdbc uses. no preference though. quoteIdentifier works for me.
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.
If you're following an existing convention, let's stick to it.
* @return quoted identifiers | ||
* @throws SQLException throws if there are any issues fulling the quoting metadata from the db. | ||
*/ | ||
public static String enquoteIdentifierList(Connection connection, List<String> identifiers) throws SQLException { |
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.
same
e463fa7
to
1439eaa
Compare
What
closes #1818
closes #1816
AbstractJdbcSource
did not handle tables and columns with non alphanumeric characters (e.g. spaces, ., etc)How
I am not particularly interested in merging this before the launch. We can launch after. (unless any reviewer particularly want it right now.)