From 0b779b9ac08bce2fc3fb34a2482bc0ef8a828517 Mon Sep 17 00:00:00 2001 From: TG infra <> Date: Tue, 9 Jan 2024 17:56:55 +0000 Subject: [PATCH] [Automated]JDBC Driver Release 1.3.14 --- tools/etl/tg-jdbc-driver/CHANGELOG.md | 2 +- tools/etl/tg-jdbc-driver/tg-jdbc-driver/pom.xml | 2 +- .../src/main/java/com/tigergraph/jdbc/common/Statement.java | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/etl/tg-jdbc-driver/CHANGELOG.md b/tools/etl/tg-jdbc-driver/CHANGELOG.md index 50d312fd..7bae8263 100644 --- a/tools/etl/tg-jdbc-driver/CHANGELOG.md +++ b/tools/etl/tg-jdbc-driver/CHANGELOG.md @@ -1,4 +1,4 @@ -## Release 1.3.13 +## Release 1.3.14 * Supported TG Version: 2.4.1+ * Bugfixes: 1. fix the bug that can't set queryTimeout in Spark diff --git a/tools/etl/tg-jdbc-driver/tg-jdbc-driver/pom.xml b/tools/etl/tg-jdbc-driver/tg-jdbc-driver/pom.xml index 26c14b05..fbbbc507 100644 --- a/tools/etl/tg-jdbc-driver/tg-jdbc-driver/pom.xml +++ b/tools/etl/tg-jdbc-driver/tg-jdbc-driver/pom.xml @@ -4,7 +4,7 @@ com.tigergraph tigergraph-jdbc-driver - 1.3.13 + 1.3.14 jar TigerGraph JDBC Driver Parent diff --git a/tools/etl/tg-jdbc-driver/tg-jdbc-driver/src/main/java/com/tigergraph/jdbc/common/Statement.java b/tools/etl/tg-jdbc-driver/tg-jdbc-driver/src/main/java/com/tigergraph/jdbc/common/Statement.java index 76d7831c..deac49e9 100644 --- a/tools/etl/tg-jdbc-driver/tg-jdbc-driver/src/main/java/com/tigergraph/jdbc/common/Statement.java +++ b/tools/etl/tg-jdbc-driver/tg-jdbc-driver/src/main/java/com/tigergraph/jdbc/common/Statement.java @@ -46,13 +46,12 @@ public void setQueryTimeout(int seconds) throws SQLException { throw new SQLException("Timeout should be greater than or equal to 0."); } - // The unit of timeout for TigerGraph is millisecond. - timeout = seconds * 1000; + timeout = seconds; } @Override public int getQueryTimeout() throws SQLException { - return timeout / 1000; + return timeout; } /*