Closed hampsterx closed 10 years ago
Hi !
For tests purposes you can see DBSelect genererated SQL by addind a simple console.log('generated SQL:', sql)
in "lib/dbSelect.js", at the end of the "DBSelect.prototype.assemble()" method, line 387.
About your binding issue : this is because the Pg adpater escape policy is based on isNaN()
, and a test with isNaN('3300')
says that '3300'
is a Number.
I'll try to fix it soon.
Thanks for the bug report !
Fixed in b044b140bded47a7dad14e446d3e7709abc57c8a. @hampsterx Thank you very much for the bug report!
fetchRow("SELECT * FROM user WHERE username = ?", ['3300'], function(err, result) {
This code is not working for me, I suspect the bind value is being converted to an integer even though the field is character varying.
Database Driver: PG
PS Is there a way I can debug to see the generated SQL?
Cheers,
TiM