From ffcc0dec9f23eaf8a7115cc2f22c84ab1f3caed2 Mon Sep 17 00:00:00 2001 From: zyyang Date: Wed, 3 Feb 2021 18:47:32 +0800 Subject: [PATCH] change --- .../jdbc/src/test/java/com/taosdata/jdbc/TSDBStatementTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBStatementTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBStatementTest.java index b73fa97d35..18be39e49f 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBStatementTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBStatementTest.java @@ -35,7 +35,7 @@ public class TSDBStatementTest { @Test public void executeUpdate() { String dbName = "test_" + UUID.randomUUID(); - dbName = dbName.replace("-", "_"); + dbName = dbName.replace("-", "_").substring(0,32); try { int affectRows = stmt.executeUpdate("create database " + dbName); Assert.assertEquals(0, affectRows); -- GitLab