projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a957431
)
Remove inappropriate backslash escaping inside _db_escape_string().
author
Zac Medico
<zmedico@gentoo.org>
Thu, 20 Nov 2008 22:42:01 +0000
(22:42 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 20 Nov 2008 22:42:01 +0000
(22:42 -0000)
svn path=/main/trunk/; revision=12010
pym/portage/cache/sqlite.py
patch
|
blob
|
history
diff --git
a/pym/portage/cache/sqlite.py
b/pym/portage/cache/sqlite.py
index a53e8172ad415b6f6c59f62e74136bf2b697bfc4..a3d313c47e2d19e50f350588a876e46c014f8b6d 100644
(file)
--- a/
pym/portage/cache/sqlite.py
+++ b/
pym/portage/cache/sqlite.py
@@
-46,7
+46,8
@@
class database(fs_template.FsBased):
def _db_escape_string(self, s):
"""meta escaping, returns quoted string for use in sql statements"""
- return "'%s'" % str(s).replace("\\","\\\\").replace("'","''")
+ # This is equivalent to the _quote function from pysqlite 1.1.
+ return "'%s'" % str(s).replace("'","''")
def _db_init_connection(self, config):
self._dbpath = self.location + ".sqlite"