[SQL-CVS] r538 - trunk/SQLObject/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2005-01-13 10:44:06
|
Author: phd Date: 2005-01-13 10:43:56 +0000 (Thu, 13 Jan 2005) New Revision: 538 Modified: trunk/SQLObject/sqlobject/converters.py Log: Fixed a bug in sqlStringReplace - MySQL and PostgreSQL use backslash to escape quotes. Modified: trunk/SQLObject/sqlobject/converters.py =================================================================== --- trunk/SQLObject/sqlobject/converters.py 2005-01-12 17:39:30 UTC (rev 537) +++ trunk/SQLObject/sqlobject/converters.py 2005-01-13 10:43:56 UTC (rev 538) @@ -47,7 +47,7 @@ sqlStringReplace = [ ('\\', '\\\\'), - ("'", "''"), + ("'", "\\'"), ('\000', '\\0'), ('\b', '\\b'), ('\n', '\\n'), |