node-querybuilder
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -163,3 +163,3 @@ // **************************************************************************** | ||
if (sql.length > 0) { | ||
if (sqls.length > 0) { | ||
setTimeout(next_batch,0); | ||
@@ -166,0 +166,0 @@ } else { |
{ | ||
"name": "node-querybuilder", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"author": "Kyle Farris <kyle@chomponllc.com>", | ||
@@ -5,0 +5,0 @@ "description": "Modeled after Codeigniter's QueryBuilder. Build and execute queries in a safe and database-agnostic way.", |
@@ -22,3 +22,3 @@ var should = require('chai').should(); | ||
expect(function() { qb.like(''); }, 'empty string provided').to.throw(Error); | ||
expect(function() { qb.like('planet_name','ear','after'); }, 'valid string').to.not.throw(Error); | ||
@@ -38,3 +38,3 @@ expect(function() { qb.like({planet_name: 'ear'}); }, 'valid object').to.not.throw(Error); | ||
expect(function() { qb.like('planet_name',Infinity);}, 'empty array provided').to.throw(Error); | ||
expect(function() { qb.like('planet_name',false); }, 'false provided').to.not.throw(Error); | ||
@@ -59,3 +59,3 @@ expect(function() { qb.like('planet_name',true); }, 'true provided').to.not.throw(Error); | ||
expect(function() { qb.like('galaxy_name','milk','foo'); }, 'non-empty string provided').to.throw(Error); | ||
expect(function() { qb.like('galaxy_name','milk'); }, 'no third param provided').to.not.throw(Error); | ||
@@ -72,3 +72,3 @@ expect(function() { qb.like('galaxy_name','milk','right'); }, 'right as third param').to.not.throw(Error); | ||
qb.where_array.should.eql(["`galaxy_name` LIKE 'milky%'"]); | ||
qb.reset_query(); | ||
@@ -82,3 +82,3 @@ qb.like('galaxy_name', 'milky', 'right'); | ||
qb.where_array.should.eql(["`galaxy_name` LIKE '%milky'"]); | ||
qb.reset_query(); | ||
@@ -92,3 +92,3 @@ qb.like('galaxy_name', 'milky', 'left'); | ||
qb.where_array.should.eql(["`galaxy_name` LIKE '%milky%'"]); | ||
qb.reset_query(); | ||
@@ -194,2 +194,2 @@ qb.like('galaxy_name', 'milky', 'both'); | ||
}); | ||
}); | ||
}); |
4618
887528