Closed kwyntes closed 3 years ago
The query builder use bind parameters. The hash is a unique parameter name. Method "getQueryString" is for debugging only. What do you want to do?
Ah, I didn't know getQueryString
was for debugging only. What is the correct method for getting the raw SQL string?
You can't get real SQL with the PDO driver. You can get similar query with "getQueryString(true)" but only for debugging. If you want to fetch data use [https://github.com/heminei/php-query-builder#fetching-data](this methods)
Ah okay thank you!
I'm using this code to add a where condition:
And the output is:
Each time I run this code the string is different, for example:
This makes the entire library pretty much unusable.