Skip to content

Commit

Permalink
quote wrap table name
Browse files Browse the repository at this point in the history
  • Loading branch information
caldwellc committed Mar 24, 2022
1 parent 0276794 commit bcdda3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dist

built
api-docs
docs
tmp
bundle
test/bundle
Expand Down
2 changes: 1 addition & 1 deletion lib/tiles/matrix/tileMatrixDao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class TileMatrixDao extends Dao<TileMatrix> {
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;
}
}

0 comments on commit bcdda3d

Please sign in to comment.