From ec86e48bccd8ac7ac17f8624b9ce0779a0dd7c61 Mon Sep 17 00:00:00 2001 From: xieyinglin Date: Tue, 19 Nov 2019 23:46:41 +0800 Subject: [PATCH] fix for issue #745 --- .../jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java index 7881c06b6a..c297fb67b0 100755 --- a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java +++ b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java @@ -273,6 +273,9 @@ public class TSDBDriver implements java.sql.Driver { String user = ""; for (String queryStr : queryStrings) { String[] kvPair = queryStr.trim().split("="); + if (kvPair.length < 2){ + continue; + } switch (kvPair[0].toLowerCase()) { case PROPERTY_KEY_USER: urlProps.setProperty(PROPERTY_KEY_USER, kvPair[1]); -- GitLab