Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$m = \R::findOrCreate('category', ['code' => (string)$me->menuid]);
// the value of $me->menuid => '00000'
results in query: SELECTcategory.* FROMcategoryWHERE (codeIN ( 00000 ) )
SELECT
.* FROM
WHERE (
IN ( 00000 ) )
Which returns all rows where a string is filled in (searches for integer 0)
To fix this the resulting query should be (quotes):
SELECTcategory.* FROMcategoryWHERE (codeIN ( '00000' ) )
IN ( '00000' ) )
Redbean version 4.3
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. I will look into this.
Sorry, something went wrong.
1c7ec69
Thanks!
Fix zeroes issue. Close gabordemooij#525.
ef6c326
No branches or pull requests
$m = \R::findOrCreate('category', ['code' => (string)$me->menuid]);
// the value of $me->menuid => '00000'
results in query:
SELECT
category.* FROM
categoryWHERE (
codeIN ( 00000 ) )
Which returns all rows where a string is filled in (searches for integer 0)
To fix this the resulting query should be (quotes):
SELECT
category.* FROM
categoryWHERE (
codeIN ( '00000' ) )
Redbean version 4.3
The text was updated successfully, but these errors were encountered: