aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-19 18:03:54 +0200
committerRobin Appelman <robin@icewind.nl>2024-07-23 14:41:13 +0200
commit16c184e2cb1110797935107987d0fc9536031df8 (patch)
tree5cb0794d4fcd13b0996bb3d2720c4746d195d796 /lib/private/DB
parentf58a88b11c7fdadaa1296d7e26c70dbc99d80869 (diff)
downloadnextcloud-server-16c184e2cb1110797935107987d0fc9536031df8.tar.gz
nextcloud-server-16c184e2cb1110797935107987d0fc9536031df8.zip
fix: cast to bigint on postgresql
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB')
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
index 1a162f04a49..53a566a7eb6 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
@@ -23,7 +23,7 @@ class PgSqlExpressionBuilder extends ExpressionBuilder {
public function castColumn($column, $type): IQueryFunction {
switch ($type) {
case IQueryBuilder::PARAM_INT:
- return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS INT)');
+ return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS BIGINT)');
case IQueryBuilder::PARAM_STR:
return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS TEXT)');
default: