Skip to content

Commit bcdda3d

Browse files
committed
quote wrap table name
1 parent 0276794 commit bcdda3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ dist
5757

5858
built
5959
api-docs
60+
docs
6061
tmp
6162
bundle
6263
test/bundle

lib/tiles/matrix/tileMatrixDao.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class TileMatrixDao extends Dao<TileMatrix> {
7676
hasTiles(tileMatrix: TileMatrix): boolean {
7777
const where = this.buildWhereWithFieldAndValue(TileColumn.COLUMN_ZOOM_LEVEL, tileMatrix.zoom_level);
7878
const whereArgs = this.buildWhereArgs([tileMatrix.zoom_level]);
79-
const query = SqliteQueryBuilder.buildQuery(false, tileMatrix.table_name, undefined, where);
79+
const query = SqliteQueryBuilder.buildQuery(false, "'" + tileMatrix.table_name + "'", undefined, where);
8080
return this.connection.get(query, whereArgs) != null;
8181
}
8282
}

0 commit comments

Comments
 (0)