writing null data row value fix

This commit is contained in:
brianc 2010-10-10 23:35:59 -05:00
parent 5152cfea14
commit cc82286741

View File

@ -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);