Skip to content
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

Fix CASE WHEN clause in AbstractReportRepository for PostgreSQL compatibility #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

curler7
Copy link

@curler7 curler7 commented Nov 1, 2024

Summary

This PR updates the CASE WHEN clause in the AbstractReportRepository to ensure compatibility with PostgreSQL.

Changes

The following change was made:

  • Replaced tax_adjustment.neutral = 1 with tax_adjustment.neutral = true, addressing PostgreSQL's handling of boolean expressions and ensuring compatibility across both PostgreSQL and MySQL databases.

Rationale

This fix prevents errors related to mismatched types during query execution in PostgreSQL, such as operator does not exist: boolean = integer.

Fixes #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for postgresql
2 participants