From: Mike Bayer Date: Tue, 23 Dec 2008 05:44:49 +0000 (+0000) Subject: silly negative ID numbers on linux... X-Git-Tag: rel_0_5_0~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10c62a94b004a0fef5585a318e78cff681801556;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git silly negative ID numbers on linux... --- diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 39e3dbfd7f..c6eac52a98 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -407,7 +407,7 @@ class DefaultCompiler(engine.Compiled): return bind_name - _trunc_re = re.compile(r'%\((\d+ \w+)\)s', re.U) + _trunc_re = re.compile(r'%\((-?\d+ \w+)\)s', re.U) def _truncated_identifier(self, ident_class, name): if (ident_class, name) in self.truncated_names: return self.truncated_names[(ident_class, name)]