]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cast bool things to numbers as that is how they are stored in the database 23935/head
authorJoas Schilling <coding@schilljs.com>
Fri, 6 Nov 2020 12:32:14 +0000 (13:32 +0100)
committerJoas Schilling <coding@schilljs.com>
Fri, 6 Nov 2020 12:36:57 +0000 (13:36 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php

index e8e436ba5bd2cdfa8da3d8671481ca7cf3f7bebb..c37150746855fffc91274ecbf4a4df775cadcccd 100644 (file)
@@ -170,7 +170,7 @@ class OCIExpressionBuilder extends ExpressionBuilder {
                        $column = $this->helper->quoteColumnName($column);
                        return new QueryFunction('to_char(' . $column . ')');
                }
-               if ($type === IQueryBuilder::PARAM_INT) {
+               if ($type === IQueryBuilder::PARAM_INT || $type === IQueryBuilder::PARAM_BOOL) {
                        $column = $this->helper->quoteColumnName($column);
                        return new QueryFunction('to_number(to_char(' . $column . '))');
                }