Fix early initialization of _schema attribute.
This commit is contained in:
@@ -105,7 +105,6 @@ MBTiles.prototype._exists = function(table, callback) {
|
|||||||
if (this._schema) {
|
if (this._schema) {
|
||||||
return callback(null, _(this._schema).include(table));
|
return callback(null, _(this._schema).include(table));
|
||||||
} else {
|
} else {
|
||||||
this._schema = [];
|
|
||||||
this._db.all(
|
this._db.all(
|
||||||
'SELECT name FROM sqlite_master WHERE type IN (?, ?)',
|
'SELECT name FROM sqlite_master WHERE type IN (?, ?)',
|
||||||
'table',
|
'table',
|
||||||
|
|||||||
Reference in New Issue
Block a user