Skip to content

Commit

Permalink
feat: Upgrade to 42.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
emotionbug committed Jan 5, 2023
1 parent 80e1ff2 commit df4f0de
Show file tree
Hide file tree
Showing 14 changed files with 2,840 additions and 2,667 deletions.
2 changes: 1 addition & 1 deletion VERSION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
------------------
* feat: Support the graph array
* fix: Cannot convert jsonb string to number. (AG-120)
* Upgrade PostgreSQL JDBC Driver to 42.2.27.jre7
* Upgrade PostgreSQL JDBC Driver to 42.5.1(JDK8+), 42.2.27.jre7(JDK7)

1.4.2 / 2018-01-11
------------------
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ repositories {
}

dependencies {
implementation("org.postgresql:postgresql:42.2.27.jre7")
implementation("org.postgresql:postgresql:42.5.1")
implementation("com.googlecode.json-simple:json-simple:1.1.1")

testImplementation("junit:junit:4.13.2")
testImplementation("org.testcontainers:testcontainers:1.17.6")
}

group = "net.bitnine"
version = "1.4.3.42_2_27.jre7"
version = "1.4.3"
description = "Agensgraph JDBC"
java.sourceCompatibility = JavaVersion.VERSION_1_7
java.sourceCompatibility = JavaVersion.VERSION_1_8
val githubUrl = "github.com/bitnine-oss/agensgraph-jdbc"

java {
Expand Down
1,297 changes: 667 additions & 630 deletions src/main/java/net/bitnine/agensgraph/Driver.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public class AGConnectionPoolDataSource extends BaseDataSource
* Gets a description of this DataSource.
*/
public String getDescription() {
return "ConnectionPoolDataSource from " + org.postgresql.util.DriverInfo.DRIVER_FULL_NAME;
return "ConnectionPoolDataSource from " + net.bitnine.agensgraph.util.DriverInfo.DRIVER_FULL_NAME;
}

/**
* Gets a connection which may be pooled by the app server or middleware implementation of
* DataSource.
*
* @throws java.sql.SQLException Occurs when the physical database connection cannot be
* established.
* established.
*/
public PooledConnection getPooledConnection() throws SQLException {
return new PGPooledConnection(getConnection(), defaultAutoCommit);
Expand All @@ -47,7 +47,7 @@ public PooledConnection getPooledConnection() throws SQLException {
* DataSource.
*
* @throws java.sql.SQLException Occurs when the physical database connection cannot be
* established.
* established.
*/
public PooledConnection getPooledConnection(String user, String password) throws SQLException {
return new PGPooledConnection(getConnection(user, password), defaultAutoCommit);
Expand Down
Loading

0 comments on commit df4f0de

Please sign in to comment.