Motivation https://github.com/spring-projects/spring-framework/issues/13874
Current implementation steps
1. Getting identifierQuoteString to use for escaping from dataBaseMetadata in GenericTableMetadataProvider
http://docs.oracle.com/javase/6/docs/api/java/sql/DatabaseMetaData.html#getIdentifierQuoteString%28%29.
2. Added property usingEscaping in SimpleJdbcInsert
and logic related to handling it in TableMetadataContext
.
3. Updated tests.
Comment From: Dretch
This is awesome, thank you very much!
Comment From: foldvari
As far as I see this solution does not support cases when the opening and the closing character used for quoting is different. (E.g. MS SQL [identifier] ).
Comment From: manicmonkey
@sbrannen you recently made changes in this area - can you comment on the viability of this PR?
Comment From: sbrannen
Do you have time to make the requested changes (consistently referring to "quote identifiers" instead of "using escaping") and rebase on
main
?
@kitaisreal, you can disregard that. I am taking care of that and other changes locally after merging your PR.
Comment From: sbrannen
This has been merged into main
in d39034754fc99862fc80eb8bd860004afd4b6d5a and revised in 7dc0653f38a0ac653bf29068dbc4bca632530eea. See also 070590cb1162ff5ef3cd2a3f7a64390caa58782c.
Thanks, and congratulations on getting your first PR for the Spring Framework merged! 👍