You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Return an empty result set with the required columns
913
-
log.warn("getPrimaryKeys is not supported and may return invalid results");
914
912
try {
915
-
returnconnection.createStatement().executeQuery("SELECT NULL AS TABLE_CAT, NULL AS TABLE_SCHEM, NULL AS TABLE_NAME, NULL AS COLUMN_NAME, NULL AS KEY_SEQ, NULL AS PK_NAME");
913
+
Stringsql = "SELECT NULL AS TABLE_CAT, " +
914
+
"system.tables.database AS TABLE_SCHEM, " +
915
+
"system.tables.name AS TABLE_NAME, " +
916
+
"trim(c.1) AS COLUMN_NAME, " +
917
+
"c.2 AS KEY_SEQ, " +
918
+
"'PRIMARY' AS PK_NAME " +
919
+
"FROM system.tables " +
920
+
"ARRAY JOIN arrayZip(splitByChar(',', primary_key), arrayEnumerate(splitByChar(',', primary_key))) as c " +
//Return an empty result set with the required columns
924
935
log.warn("getImportedKeys is not supported and may return invalid results");
925
936
try {
926
-
returnconnection.createStatement().executeQuery("SELECT NULL AS PKTABLE_CAT, NULL AS PKTABLE_SCHEM, NULL AS PKTABLE_NAME, NULL AS PKCOLUMN_NAME, NULL AS FKTABLE_CAT, NULL AS FKTABLE_SCHEM, NULL AS FKTABLE_NAME, NULL AS FKCOLUMN_NAME, NULL AS KEY_SEQ, NULL AS UPDATE_RULE, NULL AS DELETE_RULE, NULL AS FK_NAME, NULL AS PK_NAME, NULL AS DEFERRABILITY");
0 commit comments