cast to number

This commit is contained in:
Konstantin Käfer
2011-07-26 15:56:07 +02:00
parent 0c177e1c35
commit ad1f87512f

View File

@@ -76,7 +76,7 @@ MBTiles.prototype._open = function(uri) {
var key = url.format(uri);
this.filename = uri.pathname;
this._batchSize = uri.query.batch;
this._batchSize = +uri.query.batch;
Step(function() {
mbtiles._db = new sqlite3.Database(mbtiles.filename, this);
}, function(err) {