Revision 956e3c9f
b/pithos/backends/lib/sqlalchemy/node.py | ||
---|---|---|
212 | 212 |
# Use LIKE for comparison to avoid MySQL problems with trailing spaces. |
213 | 213 |
path = path.replace('%', '\%') |
214 | 214 |
path = path.replace('_', '\_') |
215 |
s = select([self.nodes.c.node], self.nodes.c.path.like(path)) |
|
215 |
s = select([self.nodes.c.node], self.nodes.c.path.like(path, escape='\\'))
|
|
216 | 216 |
r = self.conn.execute(s) |
217 | 217 |
row = r.fetchone() |
218 | 218 |
r.close() |
Also available in: Unified diff