finalize prepared statement in zxystream
This commit is contained in:
@@ -57,7 +57,11 @@ ZXYStream.prototype._read = function() {
|
|||||||
if (error) {
|
if (error) {
|
||||||
stream.emit('error', error);
|
stream.emit('error', error);
|
||||||
} else {
|
} else {
|
||||||
stream.push(lines || null);
|
if (lines) stream.push(lines);
|
||||||
|
else {
|
||||||
|
stream.statement.finalize();
|
||||||
|
stream.push(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -68,4 +72,3 @@ function toLine(row) {
|
|||||||
var y = row.y = (1 << row.z) - 1 - row.y;
|
var y = row.y = (1 << row.z) - 1 - row.y;
|
||||||
return row.z + '/' + row.x + '/' + y + '\n';
|
return row.z + '/' + row.x + '/' + y + '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user