From 554dc71b18eb065c471aa191c859f5265b011bfe Mon Sep 17 00:00:00 2001 From: cdmikechen Date: Tue, 29 Oct 2024 16:35:37 +0800 Subject: [PATCH] remove single quotes for comment --- .../main/java/com/databend/jdbc/DatabendDatabaseMetaData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/databend-jdbc/src/main/java/com/databend/jdbc/DatabendDatabaseMetaData.java b/databend-jdbc/src/main/java/com/databend/jdbc/DatabendDatabaseMetaData.java index 822d5ec..e781e80 100644 --- a/databend-jdbc/src/main/java/com/databend/jdbc/DatabendDatabaseMetaData.java +++ b/databend-jdbc/src/main/java/com/databend/jdbc/DatabendDatabaseMetaData.java @@ -856,7 +856,7 @@ public ResultSet getTables(String catalog, String schemaPattern, String tableNam ", table_schema as TABLE_SCHEM" + ", table_name as TABLE_NAME" + ", table_type as TABLE_TYPE" + - ", table_comment as REMARKS" + + ", REGEXP_REPLACE(table_comment, '^\\'(.+)\\'$', '$1') as REMARKS" + ", '' as TYPE_CAT" + ", engine as TYPE_SCHEM" + ", engine as TYPE_NAME" + @@ -985,7 +985,7 @@ private static StringBuilder columnMetaSqlTemplate() { ", column_name as COLUMN_NAME" + // 4 ", data_type as TYPE_NAME" + // 5 ", nullable as NULLABLE" + // 6 - ", column_comment as REMARKS" + // 7 + ", REGEXP_REPLACE(column_comment, '^\\'(.+)\\'$', '$1') as REMARKS" + // 7 ", `default` as COLUMN_DEF" + // 8 ", ordinal_position as ORDINAL_POSITION" + // 9 ", is_nullable as IS_NULLABLE" + // 10