1 |
Author: zmedico |
2 |
Date: 2008-11-20 22:42:01 +0000 (Thu, 20 Nov 2008) |
3 |
New Revision: 12010 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/cache/sqlite.py |
7 |
Log: |
8 |
Remove inappropriate backslash escaping inside _db_escape_string(). |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/cache/sqlite.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/cache/sqlite.py 2008-11-20 21:08:29 UTC (rev 12009) |
14 |
+++ main/trunk/pym/portage/cache/sqlite.py 2008-11-20 22:42:01 UTC (rev 12010) |
15 |
@@ -46,7 +46,8 @@ |
16 |
|
17 |
def _db_escape_string(self, s): |
18 |
"""meta escaping, returns quoted string for use in sql statements""" |
19 |
- return "'%s'" % str(s).replace("\\","\\\\").replace("'","''") |
20 |
+ # This is equivalent to the _quote function from pysqlite 1.1. |
21 |
+ return "'%s'" % str(s).replace("'","''") |
22 |
|
23 |
def _db_init_connection(self, config): |
24 |
self._dbpath = self.location + ".sqlite" |