Closed (fixed)
Project:
Quotes
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Sep 2007 at 09:00 UTC
Updated:
21 Apr 2008 at 16:54 UTC
On line 878 in the quotes.module file, '1' is returned as a default value. This will result in a query like: "..... AND 1". This might work in MySQL however in Postgres this won't because it is not a boolean. Better might be to return as a default 'TRUE', or more common (and how I fixed it): '1=1'...
Comments
Comment #1
nancydruAre you actually using role filtering? I can't see it having that much utility.
In my case, the actual SQL code is "...AND (1 in (3))..." which I would think was valid, albeit unusual. I still need to see what happens when no roles are chosen.
Comment #2
nancydruYes, I see what you mean. "quotes_block_where_sql" should (at least) have the return changed to:
I'd rather see the calling code not include anything if there are no filters.
Comment #3
nancydruFix committed.
Comment #4
nancydru