From bcdda3d246615148b94afc98fe8572a1819a80d8 Mon Sep 17 00:00:00 2001 From: Christopher Caldwell Date: Thu, 24 Mar 2022 17:54:44 -0400 Subject: [PATCH] quote wrap table name --- .gitignore | 1 + lib/tiles/matrix/tileMatrixDao.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3f1e0af3..c5df9f75 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,7 @@ dist built api-docs +docs tmp bundle test/bundle diff --git a/lib/tiles/matrix/tileMatrixDao.ts b/lib/tiles/matrix/tileMatrixDao.ts index 814d114b..9b521ef4 100644 --- a/lib/tiles/matrix/tileMatrixDao.ts +++ b/lib/tiles/matrix/tileMatrixDao.ts @@ -76,7 +76,7 @@ export class TileMatrixDao extends Dao { hasTiles(tileMatrix: TileMatrix): boolean { const where = this.buildWhereWithFieldAndValue(TileColumn.COLUMN_ZOOM_LEVEL, tileMatrix.zoom_level); const whereArgs = this.buildWhereArgs([tileMatrix.zoom_level]); - const query = SqliteQueryBuilder.buildQuery(false, tileMatrix.table_name, undefined, where); + const query = SqliteQueryBuilder.buildQuery(false, "'" + tileMatrix.table_name + "'", undefined, where); return this.connection.get(query, whereArgs) != null; } }