Skip to content

Commit

Permalink
deps: update dependency com.google.cloud:google-cloud-spanner-bom to …
Browse files Browse the repository at this point in the history
…v6.21.2 (googleapis#783)
  • Loading branch information
olavloite committed Mar 14, 2022
1 parent 25ad03b commit 1625ad0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -62,7 +62,7 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-spanner-bom</artifactId>
<version>6.20.0</version>
<version>6.21.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Expand Up @@ -915,9 +915,16 @@ public void testPostgresDialectConvertPositionalParametersToNamedParameters() {
parser.convertPositionalParametersToNamedParameters('?', "?\"\"\"?it\\\"?s\"\"\"?")
.sqlWithNamedParameters);

assertUnclosedLiteral("?'?it\\'?s \n ?it\\'?s'?");
// PostgreSQL allows newlines inside string literals.
assertEquals(
"$1'?it\\'?s \n ?it\\'?s'$2",
parser.convertPositionalParametersToNamedParameters('?', "?'?it\\'?s \n ?it\\'?s'?")
.sqlWithNamedParameters);
assertUnclosedLiteral("?'?it\\'?s \n ?it\\'?s?");
assertUnclosedLiteral("?'''?it\\'?s \n ?it\\'?s'?");
assertEquals(
"$1'''?it\\'?s \n ?it\\'?s'$2",
parser.convertPositionalParametersToNamedParameters('?', "?'''?it\\'?s \n ?it\\'?s'?")
.sqlWithNamedParameters);

assertEquals(
"select 1, $1, 'test?test', \"test?test\", foo.* from `foo` where col1=$2 and col2='test' and col3=$3 and col4='?' and col5=\"?\" and col6='?''?''?'",
Expand Down

0 comments on commit 1625ad0

Please sign in to comment.