You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can see it transforms a sql IN operator statement from: IN (1, 2, 3) to IN (1,2,3) IN ('foo', 'bar') to IN ('foo','bar')
This is fine until you try to do this (note parenthesis around the address):
userid IN (1,2) AND (address = '1 Foo Street, Barville') in which case (due to the presence of "IN ()") it is modified to be userid IN (1,2) AND (address = '1 Foo Street,Barville') which is not desirable.
So my questions are:
What problem does this solve? (Is there a fussy database engine that doesn't support spaces between commas?)
Could it be safely removed?
The text was updated successfully, but these errors were encountered:
What problem does $cleanInlist() in findAll() solve?
https://github.com/cfwheels/cfwheels/blob/master/wheels/global/internal.cfm#L139
https://github.com/cfwheels/cfwheels/blob/master/wheels/model/read.cfm#L56
From what I can see it transforms a sql
IN
operator statement from:IN (1, 2, 3)
toIN (1,2,3)
IN ('foo', 'bar')
toIN ('foo','bar')
This is fine until you try to do this (note parenthesis around the address):
userid IN (1,2) AND (address = '1 Foo Street, Barville')
in which case (due to the presence of "IN ()") it is modified to beuserid IN (1,2) AND (address = '1 Foo Street,Barville')
which is not desirable.So my questions are:
What problem does this solve? (Is there a fussy database engine that doesn't support spaces between commas?)
Could it be safely removed?
The text was updated successfully, but these errors were encountered: