mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
renamed Client#disconnect to Client#end
This commit is contained in:
parent
86b25a7a96
commit
65dbfa43ec
@ -31,7 +31,7 @@ completely non-blocking.
|
||||
};
|
||||
|
||||
query.on('end') {
|
||||
client.disconnect();
|
||||
client.end();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ p.writeInt32 = function(buffer, offset, value) {
|
||||
buffer[offset++] = value >>> 0 & 0xFF;
|
||||
};
|
||||
|
||||
p.disconnect = function() {
|
||||
p.end = function() {
|
||||
var terminationBuffer = new Buffer([88,0,0,0,4]);
|
||||
this.stream.write(terminationBuffer);
|
||||
};
|
||||
|
||||
@ -18,5 +18,5 @@ query.on('row', function() {
|
||||
});
|
||||
|
||||
query.on('end', function() {
|
||||
client.disconnect();
|
||||
client.end();
|
||||
});
|
||||
|
||||
@ -25,7 +25,7 @@ query.on('row', function(row) {
|
||||
console.log(row);
|
||||
});
|
||||
query.on('end', function() {
|
||||
client3.disconnect();
|
||||
client3.end();
|
||||
});
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user