mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
writing null data row value fix
This commit is contained in:
parent
5152cfea14
commit
cc82286741
@ -55,7 +55,7 @@ buffers.dataRow = function(columns) {
|
||||
buf.addInt16(columns.length);
|
||||
columns.forEach(function(col) {
|
||||
if(col == null) {
|
||||
buf.writeInt32(-1);
|
||||
buf.addInt32(-1);
|
||||
} else {
|
||||
var strBuf = new Buffer(col, 'utf8');
|
||||
buf.addInt32(strBuf.length);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user