Skip to content

Commit

Permalink
Merge pull request #3120 from EnterpriseDB/release/2022-09-05
Browse files Browse the repository at this point in the history
Release: 2022-09-05
  • Loading branch information
nidhibhammar authored Sep 5, 2022
2 parents 4ef1c1d + 217fe81 commit a3650a1
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ The EDB JDBC connector provides connectivity between a Java application and an E

New features, enhancements, bug fixes, and other changes in the EDB JDBC Connector 42.5.0.1 include:

| Type | Description |
| -------------- | ------------------------------------------------------------------------------- |
| Upstream Merge | Merged with the upstream community driver version 42.5.0. See the community [JDBC documentation](https://jdbc.postgresql.org/documentation/changelog.html#version_42.5.0) for details. |
| Type | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Upstream Merge | Merged with the upstream community driver version 42.5.0. See the community [JDBC documentation](https://jdbc.postgresql.org/documentation/changelog.html#version_42.5.0) for details. |
| Security Fix | CVE-2022-31197 - Fixes the SQL generated in PgResultSet.refresh() to escape column identifiers in order to prevent SQL injection. Previously, the column names for both key and data columns were copied as-is into the generated SQL. This allowed for a malicious table with column names that included a statment terminator to be parsed and executed as multiple separate commands. Also, this fix adds a new test class ResultSetRefreshTest to verify this change. |
| Change | Migrated build to Gradle. |
| Change | Migrated build to Gradle. |
| Enhancement | Added new `getServerName` connection property. If the value for `changeServerName` is set to `true`, it returns a value as `PostgreSQL`. The default value is `false`. |
| Enhancement | Added new `forceBinaryTransfer` connection property. If the value is set to `true`, forces the transfer of all binary types from the PostgreSQL server to the JDBC driver in their binary form. The default value is `false`. |









Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ To specify additional connection properties in the URL, add a question mark and

Some of the additional connection properties are shown in the following table.

| Name | Type | Description |
| --------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| user | String | The database user on whose behalf the connection is being made. |
| password | String | The database user’s password. |
| ssl | Boolean | Requests an authenticated, encrypted SSL connection. |
| charSet | String | The value of `charSet` determines the character set used for data sent to or received from the database. |
| prepareThreshold | Integer | The value of `prepareThreshold` determines the number of `PreparedStatement` executions required before switching to server-side prepared statements. The default is five. |
| loadBalanceHosts | Boolean | In default mode (disabled) hosts are connected in the given order. If enabled, hosts are chosen randomly from the set of suitable candidates. |
| Name | Type | Description |
| --------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| user | String | The database user on whose behalf the connection is being made. |
| password | String | The database user’s password. |
| ssl | Boolean | Requests an authenticated, encrypted SSL connection. |
| charSet | String | The value of `charSet` determines the character set used for data sent to or received from the database. |
| prepareThreshold | Integer | The value of `prepareThreshold` determines the number of `PreparedStatement` executions required before switching to server-side prepared statements. The default is five. |
| loadBalanceHosts | Boolean | In default mode (disabled) hosts are connected in the given order. If enabled, hosts are chosen randomly from the set of suitable candidates. |
| targetServerType | String | Allows opening connections to only servers with the required state. The allowed values are `any`, `primary`, `secondary`, `preferSecondary`, and `preferSyncSecondary`. The primary/secondary distinction is currently done by observing if the server allows writes. The value `preferSecondary` tries to connect to secondaries if any are available, otherwise allows connecting to the primary. The EDB Postgres Advanced Server JDBC Connector supports `preferSyncSecondary`, which permits connection to only synchronous secondaries or the primary if there are no active synchronous secondaries. |
| skipQuotesOnReturning | Boolean | When set to `true`, column names from the `RETURNING` clause aren't quoted. This eliminates a case-sensitive comparison of the column name. When set to `false` (the default setting), column names are quoted. |
| skipQuotesOnReturning | Boolean | When set to `true`, column names from the `RETURNING` clause aren't quoted. This eliminates a case-sensitive comparison of the column name. When set to `false` (the default setting), column names are quoted. |
| changeServerName | Boolean | The `getServerName()` call in `PgConnection.java` returns `EnterpriseDB`. If `changeServerName` is set to `true`, it returns the value as `PostgreSQL`. The default value is `false`. |
| forceBinaryTransfer | Boolean | If the value is set to `true`, forces the transfer of all binary types from the PostgreSQL server to the JDBC driver in their binary form. The default value is `false`. |
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Performing a schema extraction"

navTitle: "Schema extraction"
legacyRedirectsGenerated:
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
- "/edb-docs/d/edb-postgres-migration-portal/user-guides/user-guide/3.0.1/mp_schema_extraction.html"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Performing a schema assessment"

navTitle: "Schema assessment"

legacyRedirectsGenerated:
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
Expand Down
Loading

0 comments on commit a3650a1

Please sign in to comment.