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

PostgreSQL doesn't have IFNULL in includes/Query.php #173

Open
ibrawley opened this issue Apr 28, 2022 · 0 comments
Open

PostgreSQL doesn't have IFNULL in includes/Query.php #173

ibrawley opened this issue Apr 28, 2022 · 0 comments

Comments

@ibrawley
Copy link

As per the comment in includes/Hooks.php, PostgreSQL doesn't use the IFNULL() function, it has a COALESCE() function.

In includes/Query.php at lines 1908 and 1915, the SELECT statement being constructed is using IFNULL() without testing what the database type is first.

Attached is a quick patch that does seem to do the trick, though extra checks, etc. may be required.

Thanks.

ivan.
Query.php.patch.txt

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

No branches or pull requests

1 participant