SQL call formatting style

David Miller justdave at syndicomm.com
Wed Mar 26 00:13:03 UTC 2003


On 3/25/03 11:57 PM +0000, Gervase Markham wrote:

> David Miller wrote:
>>>Re: Myk's point: when do we ever do queries with newlines embedded in
>>>the query data?
>>
>> The example you just posted (quoted here) does. :)
>
> No, I mean, one objection to the s/\s+/ /gs; thing was (if I read it
> right) that it would remove newlines embedded in e.g. search strings in
> queries. I was asking whether we actually do that?

In Search.pm we do.  Everything gets quoted where appropriate and appended
to the appropriate section of the query.  By the time we're done, we have
one big long query string.
-- 
Dave Miller      Project Leader, Bugzilla Bug Tracking System
http://www.justdave.net/             http://www.bugzilla.org/



More information about the developers mailing list