codeschool / sqlite-parser

JavaScript implentation of SQLite 3 query parser
MIT License
331 stars 57 forks source link

Each expression is evaluated 4 times #45

Open absolux opened 7 years ago

absolux commented 7 years ago

I've added a console.log(location()) inside bind_parameter predicate, and for a simple query like below

select foo.*, ? as bar, upper(a) as A

bind_parameter is evaluated 4 times. I've also tried for other expressions, like id_column or literal_value.

screenshot from 2017-07-09 21 50 46