Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
FAQ for the PostgreSQL JDBC Driver Upgrade
Postgres
The same minor changes apply as for AlloyDB, regarding printed value types and typo fixes.
Adjustments to the third listed change in the doc (regarding the scenario of “
All scenarios affected by this change are going to have errors roughly in that format -
Batch entry 0 <query> was aborted: ERROR: <scenario-specific message> Position: <number> Call getNextException to see other errors in the batch., <error code and SQL state info>, next exception: <same error description and position as before>
Scenarios that could see these kinds of error message changes include (but are not limited to):
When the input value provided for a column is invalid for the column type.
When performing a delete that references a non-existent column.
When using an operator that does not exist or does not match given argument types.
When the query references some relation (schema, table, etc.) that does not exist.
When the query references a column that doesn’t exist
What is happening?
We plan to upgrade the JDBC driver for the PostgreSQL Snap Pack from v9.4.1207 to v42.7.2 (Java 8). This upgrade will be part of the GA release on August 14, 2024 (Stable release). As a part of this upgrade, the 42.7.2 JDBC driver is bundled with the PostgreSQL Snap Pack as the default JDBC driver.
...
Use the postgres 9.4.1207.jar
from v9.4.1207 to maintain the same behavior as before the driver upgrade.
Behavior Changes
...
Changes in the query in the error messages:
Some error messages will now include the data type for certain values, for example:
Old:
"...where (badId = 1) was aborted:..."
New:
"...where (badId = ('1'::numeric)) was aborted:..."
Improvisations in error messages:
There are some minor wording changes to some error messages, for example:
Old:
"Hint: No operator matches the given name and argument types."
New:
"Hint: No operator matches the given name and argument type(s)."
The following table lists the additional behavior changes in the Snap Pack:
PostgreSQL Snaps | Scenario | Error/Output from the old (v9.4.1207) JDBC Driver | Error/Output from the new (v42.7.2 (Java 8)) JDBC Driver |
When you provide multiple statements in the SQL Statement field, the Snap fails. | Status: Output message: | Status: Error message: | |
Table columns of the | Output as a string:
| Output message is now in an array:
| |
When the input value provided for a column is invalid for the column type. | Error Message: Reason:
| Error Message: Reason: | |
| When the metadata is returned from the Snap’s second output view. | The original number of columns in the input data is displayed in the output. | In Select Snap, the second output view, some new columns are introduced. |
| When the delete condition has an unterminated quote string. | Error message: | Error message: |
When you provide the following query:
| Status : 0 | Status: 5 | |
All PostgreSQL Snaps | When the Dynamic Account has incorrect credentials. | Error : | Error message: |
...