QuoteSQL

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Sep 25 06:53:05 EDT 2006


In message <Xns98496E6B5C337duncanbooth at 127.0.0.1>, Duncan Booth wrote:

> Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> wrote:
> 
>>> This could be an argument for having a utility function to escape the
>>> wildcards for this sort of situation, but certainly not an argument for
>>> his proposed QuoteSQL.
>> 
>> Why not? That is exactly one of the options my QuoteSQL offers.
>> 
> Yes, but your code also quotes non-wildcards...

It quotes specials which can cause trouble with MySQL. The specials come in
two sets (wildcards and others), but they are both specials.



More information about the Python-list mailing list