Socket
Socket
Sign inDemoInstall

pg

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg - npm Package Compare versions

Comparing version 0.6.13 to 0.6.14

.gitignore

2

lib/arrayParser.js

@@ -38,3 +38,3 @@ function ArrayParser(source, converter) {

entry = this.recorded.join("");
if (entry === "NULL") {
if (entry === "NULL" && !includeEmpty) {
entry = null;

@@ -41,0 +41,0 @@ }

{ "name": "pg",
"version": "0.6.13",
"version": "0.6.14",
"description": "PostgreSQL client - pure javascript & libpq with the same API",

@@ -4,0 +4,0 @@ "keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],

@@ -59,8 +59,9 @@ var helper = require(__dirname + "/test-helper");

test('null value', function(){
client.query("SELECT '{joe,null,bob}'::text[] as names", assert.success(function(result) {
client.query("SELECT '{joe,null,bob,\"NULL\"}'::text[] as names", assert.success(function(result) {
var names = result.rows[0].names;
assert.lengthIs(names, 3);
assert.lengthIs(names, 4);
assert.equal(names[0], 'joe');
assert.equal(names[1], null);
assert.equal(names[2], 'bob');
assert.equal(names[3], 'NULL');
pg.end();

@@ -67,0 +68,0 @@ }))

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