diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-19 18:03:54 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-07-23 14:41:13 +0200 |
commit | 16c184e2cb1110797935107987d0fc9536031df8 (patch) | |
tree | 5cb0794d4fcd13b0996bb3d2720c4746d195d796 /lib/private/DB | |
parent | f58a88b11c7fdadaa1296d7e26c70dbc99d80869 (diff) | |
download | nextcloud-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.php | 2 |
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: |