Socket
Socket
Sign inDemoInstall

pg-native

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-native - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

3

index.js

@@ -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();
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc