From 690cdcb2eb1c7bf514271000c31211d1c0b33e54 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Fri, 22 Apr 2022 23:01:30 +0200 Subject: [PATCH] fix(SQLite): tables with sqlite in name not visible, closes #239 --- src/main/libs/clients/SQLiteClient.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/libs/clients/SQLiteClient.ts b/src/main/libs/clients/SQLiteClient.ts index de7893f9..de0b2627 100644 --- a/src/main/libs/clients/SQLiteClient.ts +++ b/src/main/libs/clients/SQLiteClient.ts @@ -71,7 +71,7 @@ export class SQLiteClient extends AntaresCore { SELECT * FROM "${db.name}".sqlite_master WHERE type IN ('table', 'view') - AND name NOT LIKE 'sqlite_%' + AND name NOT LIKE 'sqlite\\_%' ESCAPE '\\' ORDER BY name `); if (tables.length) { @@ -743,4 +743,12 @@ export class SQLiteClient extends AntaresCore { return result as unknown as T; } + + getVariables (): null[] { + return []; + } + + getCollations (): null[] { + return []; + } }