-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
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
[12.0][FIX] account_financial_report: Support Postgres v14+ #1056
Conversation
Postgres 14+ expects the argument anycompatiblearray instead of anyarray to array_cat. We detect the Postgres version and proceed with the correct type. Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
c3116d3
to
0b30aa7
Compare
For clarity, I have tested this against a Postgres 12 and a Postgres 14 database. For easy testing, use:
and then set Alternatively, use Docker instead of podman. They have the same command-line arguments, I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR has the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/ocabot merge patch |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 370d135. Thanks a lot for contributing to OCA. ❤️ |
Postgres 14+ expects the argument anycompatiblearray instead of anyarray to array_cat. We detect the Postgres version and proceed with the correct type.
The refactoring in #660 would also fix this problem, and certainly fixes it for future Odoo versions, but that PR is marked do-not-merge.
Internal task: https://gestion.coopiteasy.be/web#view_type=form&model=project.task&id=10965&active_id=10965&menu_id=