Author: phd
Date: 2005-01-13 10:50:11 +0000 (Thu, 13 Jan 2005)
New Revision: 539
Modified:
home/phd/SQLObject/inheritance/sqlobject/converters.py
Log:
Fixed a bug in sqlStringReplace - MySQL and PostgreSQL use backslash to escape quotes.
Modified: home/phd/SQLObject/inheritance/sqlobject/converters.py
===================================================================
--- home/phd/SQLObject/inheritance/sqlobject/converters.py 2005-01-13 10:43:56 UTC (rev 538)
+++ home/phd/SQLObject/inheritance/sqlobject/converters.py 2005-01-13 10:50:11 UTC (rev 539)
@@ -47,7 +47,7 @@
sqlStringReplace = [
('\\', '\\\\'),
- ("'", "''"),
+ ("'", "\\'"),
('\000', '\\0'),
('\b', '\\b'),
('\n', '\\n'),
|