hiddentao / squel

:office: SQL query string builder for Javascript
https://hiddentao.github.io/squel
MIT License
1.57k stars 231 forks source link

example for 'parameters' has extra param #358

Open i-am-al-x opened 6 years ago

i-am-al-x commented 6 years ago

In the "parameters" section of the documentation at https://hiddentao.com/squel/#select

The following code is presented in an example: log( squel.select() .from("students") .where("a = ? AND b = ?", "test", true) .order("CALC(?, ?)", true, 1.2, false) .limit(10) .offset(3) .toParam() ); The line for ".order()" should have just two parameters. The 'true' parameter is not supposed to be there.