You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the provided test case, a CREATE TABLE SQL statement is executed using stmt.executeUpdate(createTableSql, Statement.RETURN_GENERATED_KEYS). This execution unexpectedly results in a syntax error: "syntax error at or near 'RETURNING'".
This behavior is inconsistent with Postgres JDBC.
@Testpublicvoidtest() {
try (Connectioncon = DriverManager.getConnection("jdbc:pgsql://localhost:5432/test0", "user", "password")) {
Statementstmt = con.createStatement();
StringcreateTableSql = "CREATE TABLE table0_0(id INT PRIMARY KEY, value VARCHAR(5));";
stmt.executeUpdate(createTableSql, Statement.RETURN_GENERATED_KEYS);
} catch (SQLExceptione) {
e.printStackTrace(); // syntax error at or near "RETURNING"
}
}
The text was updated successfully, but these errors were encountered:
In the provided test case, a CREATE TABLE SQL statement is executed using stmt.executeUpdate(createTableSql, Statement.RETURN_GENERATED_KEYS). This execution unexpectedly results in a syntax error: "syntax error at or near 'RETURNING'".
This behavior is inconsistent with Postgres JDBC.
The text was updated successfully, but these errors were encountered: