Skip to content

Commit

Permalink
dbeaver/dbeaver#23361 Columns for all tables read
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed Nov 1, 2024
1 parent 858cb2c commit 221baa6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public ResultSet getColumns(String catalog, String schemaPattern, String tableNa
}
return executeQuery(
"WITH all_tables AS (SELECT name AS tn FROM sqlite_master WHERE type = 'table'" +
(tableName == null ? "" : " and name=" + LibSqlUtils.escape(tableName)) + ") \n" +
(tableName == null ? "" : " and name=" + LibSqlUtils.quote(tableName)) + ") \n" +
"SELECT NULL as TABLE_CAT, NULL AS TABLE_SCHEM, at.tn as TABLE_NAME,\n" +
"pti.name as COLUMN_NAME," + Types.VARCHAR + " AS DATA_TYPE, pti.type AS TYPE_NAME, 0 AS COLUMN_SIZE," +
"NULL AS REMARKS,pti.cid AS ORDINAL_POSITION " +
Expand Down

0 comments on commit 221baa6

Please sign in to comment.