mxODBC and apostrophe's in strings

Ignacio Vazquez-Abrams ignacio at
Wed Sep 12 09:38:42 CEST 2001

On 12 Sep 2001, Ben C wrote:

> Does anyone know of a workaround for this keeping in mind that any
> combination of ASCI characters could appear in the _text string.

_text.replace("'", "\\'")


_text.replace("'", "''")

Ignacio Vazquez-Abrams  <ignacio at>

More information about the Python-list mailing list