Support backticks for quoted identifiers in spring-r2dbc

NamedParameterUtils in spring-r2dbc now supports MySQL-style backticks
for quoted identifiers for consistency with spring-jdbc.

See gh-31944
Closes gh-32285
This commit is contained in:
Sam Brannen
2024-02-17 16:05:40 +01:00
parent d86af57e0f
commit bc2895a30b
2 changed files with 11 additions and 2 deletions

View File

@@ -56,12 +56,12 @@ abstract class NamedParameterUtils {
/**
* Set of characters that qualify as comment or quote starting characters.
*/
private static final String[] START_SKIP = {"'", "\"", "--", "/*"};
private static final String[] START_SKIP = {"'", "\"", "--", "/*", "`"};
/**
* Set of characters that are the corresponding comment or quote ending characters.
*/
private static final String[] STOP_SKIP = {"'", "\"", "\n", "*/"};
private static final String[] STOP_SKIP = {"'", "\"", "\n", "*/", "`"};
/**
* Set of characters that qualify as parameter separators,