From 943020d3304b2d51e2bb5b6673ca220fc4f60341 Mon Sep 17 00:00:00 2001 From: zyyang Date: Sun, 17 Jan 2021 19:06:55 +0800 Subject: [PATCH] change --- .../src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java index f6dba40246..6bd9ab7c29 100644 --- a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java +++ b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java @@ -630,7 +630,7 @@ public class TSDBDatabaseMetaData implements java.sql.DatabaseMetaData { ResultSet stables = stmt.executeQuery("show stables"); while (stables.next()) { TSDBResultSetRowData rowData = new TSDBResultSetRowData(10); - rowData.setString(3, tables.getString("name")); + rowData.setString(3, stables.getString("name")); rowData.setString(4, "TABLE"); rowData.setString(5, "STABLE"); rowDataList.add(rowData); -- GitLab