We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4cf420 commit 47f7e3bCopy full SHA for 47f7e3b
2 files changed
pgjdbc/src/main/java/org/postgresql/core/ServerVersion.java
@@ -38,7 +38,9 @@ public enum ServerVersion implements Version {
38
v15("15"),
39
v16("16"),
40
v17("17"),
41
- v18("18")
+ v18("18"),
42
+ v19("19"),
43
+ v20("20")
44
;
45
46
private final int version;
pgjdbc/src/test/java/org/postgresql/test/jdbc2/PreparedStatementTest.java
@@ -468,6 +468,10 @@ public void testSetNull() throws SQLException {
468
469
@Test
470
public void testSingleQuotes() throws SQLException {
471
+ // This test is only relevant for PostgreSQL 18 and below
472
+ // as of 4576208 in postgres non-standard strings now throw an error.
473
+ assumeMinimumServerVersion(ServerVersion.v18);
474
+
475
String[] testStrings = new String[]{
476
"bare ? question mark",
477
"quoted \\' single quote",
0 commit comments