You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
I think there should be an option to insert the column name as a dynamic parameter in queries like
squel.select()
.from('table')
.where('? > ?', 'price', 5)
.toString();
In the current state, the result is "SELECT * FROM table WHERE ('price' > 5)"
And as you can see, the column name is inside quotes (where it should be left "as is")
For reference, the "mysql" package has an option to use '??' (instead of a single '?') as "placeholders for identifiers you would like to have escaped" As indicated here
The text was updated successfully, but these errors were encountered:
I think there should be an option to insert the column name as a dynamic parameter in queries like
squel.select()
.from('table')
.where('? > ?', 'price', 5)
.toString();
In the current state, the result is "SELECT * FROM table WHERE ('price' > 5)"
And as you can see, the column name is inside quotes (where it should be left "as is")
For reference, the "mysql" package has an option to use '??' (instead of a single '?') as "placeholders for identifiers you would like to have escaped" As indicated here
The text was updated successfully, but these errors were encountered: