Closed vitalif closed 8 years ago
Oops, sorry. The fix was not complete. Please look at the rewritten branch.
@vitalif: Thank you! Overall, this looks good & should be merged. There are a few minor clean-up things I would like done, as mentioned in the comments. If you have time & interest you can go ahead & do them, otherwise I'll probably get to them over the weekend or next week and get this merged.
Thanks again!
Added some updates based on your comments :)
Thanks again @vitalif! Merged & published as 1.5.0.
sql('a = ?', 1).toString({placeholder: '?'})
now crashes, and also does not work with $%d)select().from('tbl').where(or(sql('a = $1', 444), sql('b = $1', 555)))
should beSELECT * FROM tbl WHERE a = $1 OR b = $2
, notSELECT * FROM tbl WHERE a = $1 OR b = $1
)