Comparing version 1.4.0 to 1.4.1
@@ -58,3 +58,3 @@ var Libpq = require('libpq'); | ||
if(rawValue == '') { | ||
if(pq.getisnull()) { | ||
if(pq.getisnull(i, j)) { | ||
value = null; | ||
@@ -73,3 +73,2 @@ } | ||
return rows; | ||
} | ||
@@ -76,0 +75,0 @@ |
{ | ||
"name": "pg-native", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A slightly nicer interface to Postgres over node-libpq", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ var Client = require('../'); | ||
describe('client with arrayMode', function() { | ||
it('returns result as array', function() { | ||
it('returns result as array', function(done) { | ||
var client = new Client({arrayMode: true}); | ||
@@ -18,3 +18,10 @@ client.connectSync(); | ||
assert.equal(rows[1][0], 'aaron'); | ||
client.query("SELECT 'brian', null", function(err, res) { | ||
assert.ifError(err); | ||
assert.strictEqual(res[0][0], 'brian') | ||
assert.strictEqual(res[0][1], null) | ||
done(); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41793
1037