fluentpdo icon indicating copy to clipboard operation
fluentpdo copied to clipboard

getQuery + paramiters in string

Open flanderboy opened this issue 5 years ago • 3 comments

Hello everyone, it is possible to get the query string from

->getQuery() SELECT tbl.* FROM tbl WHERE email = ? AND password = ?

and parameters in the string like this

SELECT tbl.* FROM tbl WHERE email = "[email protected]" AND password = "!12345679";

Thank you Stefano

flanderboy avatar Mar 15 '19 17:03 flanderboy

I'm not sure why you'd want this? The query executed contains the question marks, not quoted values like the second example.

cbornhoft avatar Apr 16 '19 15:04 cbornhoft

str_replce (? to %s Or %d) & vsprintf

liorphp avatar Sep 22 '19 17:09 liorphp

I'm not sure why you'd want this? The query executed contains the question marks, not quoted values like the second example.

After all, is there any way to return the values ​​instead of returning "?"

klebinhopk avatar Dec 11 '19 19:12 klebinhopk