@@ -93,7 +93,7 @@ var validAndUsageTests = new TestSuite([
.from("PERSON")
.where("PERSON.FIRSTNAME","Tim")
.and("PERSON.LASTNAME","Admin"),
"exists ?")
"exists ?")// Note: you can use SqlBuilder.EXISTS() instead of "exists ?"
pTester.assert("exists ( select FIRSTNAME from PERSON where PERSON.FIRSTNAME = ? and PERSON.LASTNAME = ? ) ",actual._where._sqlStorage,"prepared sql");
pTester.assert(2,actual._where.preparedValues.length,"number of params");
...
...
@@ -582,155 +582,143 @@ var mandatoryErrorTests = new TestSuite([
// and
["and without parameter should error",function(pTester)
{
newSqlBuilder().where();
newSqlBuilder().where().or();
},SqlBuilder.ERROR_NO_PARAMETER_PROVIDED()],
["and with '' as value should error",function(pTester)