Escaping SQL in python

Erno Kuusela erno-news at erno.iki.fi
Wed Jun 27 06:41:05 EDT 2001


In article <3B39A1B8.A7FCE4C7 at kvarteret.uib.no>, Kjetil Nygård
<kjetiln at kvarteret.uib.no> writes:

| Is there a method to escape ' " \ and the like in python auto-magiacaly
| ?

it is not portable between different sql dialects, so there is no
generic way. the database-specific modules can provide such a function,
but it is usually easy to write one yourself.

  -- erno



More information about the Python-list mailing list