Revision 7759260d pithos/backends/lib/sqlalchemy/xfeatures.py
b/pithos/backends/lib/sqlalchemy/xfeatures.py | ||
---|---|---|
92 | 92 |
return [inherited] |
93 | 93 |
|
94 | 94 |
s = select([self.xfeatures.c.path, self.xfeatures.c.feature_id]) |
95 |
s = s.where(and_(self.xfeatures.c.path.like(path + '%'),
|
|
95 |
s = s.where(and_(self.xfeatures.c.path.like(self.escape_like(path) + '%', escape='\\'),
|
|
96 | 96 |
self.xfeatures.c.path != path)) |
97 | 97 |
s = s.order_by(self.xfeatures.c.path) |
98 | 98 |
r = self.conn.execute(s) |
Also available in: Unified diff