Open ChristophWurst opened 4 years ago
There is code in OCIExpressionBuilder that could be copied. Might also be necessary for mysql strict mode. Quite dangerous so let's experiment after stable19
Is this Issue still valid? If not, please close this issue. Thanks! :)
Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!
Type is still not used here: https://github.com/nextcloud/server/blob/master/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php#L142-L146 And the function not overwritten in the PgSqlExpressionBuilder.
How to use GitHub
Steps to reproduce
a.x = b.y
where a.x is an int and b.y is a varcharExpected behaviour
Using an explicit type for
\OCP\DB\QueryBuilder\IExpressionBuilder::eq
I might expect the expressions to be type cased so the comparison works.Actual behaviour
This blows up on postgres (at least, possibly also on strict mysql).
Ref https://github.com/nextcloud/mail/pull/2970 Ref https://github.com/nextcloud/mail/pull/2796
cc @nickvergessen