better-sqlite3
Advanced tools
Comparing version 7.4.2 to 7.4.3
{ | ||
"name": "better-sqlite3", | ||
"version": "7.4.2", | ||
"version": "7.4.3", | ||
"description": "The fastest and simplest library for SQLite3 in Node.js.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/JoshuaWise/better-sqlite3", |
@@ -95,2 +95,14 @@ 'use strict'; | ||
}); | ||
it('should properly bind empty buffers', function () { | ||
this.db.prepare('INSERT INTO entries (c) VALUES (?)').bind(Buffer.alloc(0)).run(); | ||
const result = this.db.prepare('SELECT c FROM entries').pluck().get(); | ||
expect(result).to.be.an.instanceof(Buffer); | ||
expect(result.length).to.equal(0); | ||
}); | ||
it('should properly bind empty strings', function () { | ||
this.db.prepare('INSERT INTO entries (a) VALUES (?)').bind('').run(); | ||
const result = this.db.prepare('SELECT a FROM entries').pluck().get(); | ||
expect(result).to.be.a('string'); | ||
expect(result.length).to.equal(0); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2860254
4987