Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Cast bool params to int in getDebugQuery #291

Closed
scottfriebel opened this issue Jan 15, 2021 · 1 comment · Fixed by #295
Closed

Cast bool params to int in getDebugQuery #291

scottfriebel opened this issue Jan 15, 2021 · 1 comment · Fixed by #295
Labels

Comments

@scottfriebel
Copy link

When executing a query a bool parameter is cast to an int since SQL doesn't really like bool types. In the 'getDebugQuery' function though there is no handling for bool types so you get an output like

SELECT 
    *
FROM
    orders
WHERE
    is_paid =  AND user = 1
@DarkSide666
Copy link
Member

If that's the case then it looks like bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants