When filtering a view by a Profile checkbox (boolean) field, the query generated is not Postgresql compatible.
The problem is a type mismatch, becouse the query is something like WHERE profile_values_*.value = 0 or like WHERE profile_values_*.value <> 0, but in the database that field is a text field.
So the query must be WHERE profile_values_*.value = '0'
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 982472-fix.patch | 526 bytes | dawehner |
Comments
Comment #1
dawehnerIf you apply this patch and you clear the views cache at admin/build/views/tools, does this patch fix your issue?
Comment #2
Monty-2 commentedafter applying the patch the query become
WHERE profile_values_*.value = '', that is sintactically correct, but is searching for an empty string '' to be FALSE and not for '0'Comment #3
Monty-2 commentedComment #4
dawehnerUpdate status.
Comment #5
mustanggb commented