From 7c3aac03143b2c7768894f0445d98cb7e42d06d0 Mon Sep 17 00:00:00 2001 From: zyyang Date: Sun, 17 Jan 2021 19:04:16 +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 35675ef69f..f6dba40246 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 @@ -621,7 +621,7 @@ public class TSDBDatabaseMetaData implements java.sql.DatabaseMetaData { ResultSet tables = stmt.executeQuery("show tables"); while (tables.next()) { TSDBResultSetRowData rowData = new TSDBResultSetRowData(10); - rowData.setString(3, tables.getString("name")); + rowData.setString(3, tables.getString("table_name")); rowData.setString(4, "TABLE"); rowData.setString(5, ""); rowDataList.add(rowData); -- GitLab