Closed (fixed)
Project:
Views Sort Null Field
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2017 at 14:09 UTC
Updated:
28 Oct 2020 at 14:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joachim commentedWhat's the PostgreSql equivalent?
Comment #3
mithenks commentedPatch that use "column IS NULL" instead of "ISNULL(column)".
Comment #4
solideogloria commentedThe
ISNULLfunction actually isn't supposed to be used to check if something is null and only do that. That function is used to replace a null value with another value. https://www.postgresqltutorial.com/postgresql-isnull/So whether you use PostgreSQL or not, it should be changed.
Comment #5
goldThis is still present in the 8.x version of the module.
This should resolve the issue the 8.x branch.
Comment #6
solideogloria commentedPatch #3 is for D7, so this can be committed for both branches.
Comment #9
miiimoooThanks @mithenks, @solideogloria and @Gold!
Comment #10
joachim commented> The ISNULL function actually isn't supposed to be used to check if something is null and only do that.
Not in MySql. https://dev.mysql.com/doc/refman/8.0/en/comparison-operators.html#functi... says:
> If expr is NULL, ISNULL() returns 1, otherwise it returns 0.
Are we sure this patch doesn't break MySql?
Comment #11
solideogloria commentedRight above that line on the page you linked:
It says right there that "IS NULL" works as a NULL value test.
I tested some basic queries here, and IS NULL works: https://www.jdoodle.com/online-mysql-terminal/