Skip to content

Commit

Permalink
Fix for Issue: yugabyte/yugabyte-db#11063 (#5)
Browse files Browse the repository at this point in the history
The default port in PGProperty needed to be changed from 5432 to 5433
for YugabyteDB
  • Loading branch information
kneeraj committed Jan 12, 2022
1 parent 72bf9a4 commit 063468c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<dependency>
<groupId>com.yugabyte</groupId>
<artifactId>jdbc-yugabytedb</artifactId>
<version>42.3.0</version>
<version>42.3.3</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@ protected static void testUsingHikariPool(String poolName, String lbpropvalue, S
poolProperties.setProperty("connectionTimeout", "1000000");
poolProperties.setProperty("autoCommit", "true");
poolProperties.setProperty("dataSource.serverName", hostName);
poolProperties.setProperty("dataSource.portNumber", port);
poolProperties.setProperty("dataSource.databaseName", "yugabyte");
poolProperties.setProperty("dataSource.user", "yugabyte");
poolProperties.setProperty("dataSource.password", "yugabyte");
// poolProperties.setProperty("dataSource.loadBalance", "true");
poolProperties.setProperty("dataSource.additionalEndpoints",
"127.0.0.2:5433,127.0.0.3:5433");
"127.0.0.2,127.0.0.3");
if (!lbpropvalue.equals("true")) {
poolProperties.setProperty("dataSource.topologyKeys", lookupKey);
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kotlin.parallel.tasks.in.project=true
# This is version for PgJdbc itself
# Note: it should not include "-SNAPSHOT" as it is automatically added by build.gradle.kts
# Release version can be generated by using -Prelease or -Prc=<int> arguments
pgjdbc.version=42.3.2
pgjdbc.version=42.3.3

# The options below configures the use of local clone (e.g. testing development versions)
# You can pass un-comment it, or pass option -PlocalReleasePlugins, or -PlocalReleasePlugins=<path>
Expand Down
2 changes: 1 addition & 1 deletion pgjdbc/src/main/java/org/postgresql/PGProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public enum PGProperty {
*/
PG_PORT(
"PGPORT",
"5432",
"5433",
"Port of the PostgreSQL server (may be specified directly in the JDBC URL)"),

/**
Expand Down

0 comments on commit 063468c

Please sign in to comment.