olivierphi / Node-DBI

A SQL database abstraction layer strongly inspired by the PHP Zend Framework Zend_Db API, with support of multiple Node.js database engines
https://github.com/DrBenton/Node-DBI
93 stars 22 forks source link

where condition with 0 as parameter #19

Closed jolee11 closed 10 years ago

jolee11 commented 11 years ago

FAIL: var sql = db.getSelect() .from(mytable, fieldarray) .where( "myfield=?", 0)

OK: var sql = db.getSelect() .from(mytable, fieldarray) .where( "myfield=?", 1)

olivierphi commented 10 years ago

Fixed!

@jo-lee Thank you very much for the bug reporting! :smiley: