diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-23 05:44:49 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-23 05:44:49 +0000 |
commit | 10c62a94b004a0fef5585a318e78cff681801556 (patch) | |
tree | 4b2c8f15ac079943eee88038984e82a6f907462e /lib/sqlalchemy/sql/compiler.py | |
parent | 864644bee4e3acc5c63eac6e639ae39d1c3c8393 (diff) | |
download | sqlalchemy-10c62a94b004a0fef5585a318e78cff681801556.tar.gz |
silly negative ID numbers on linux...
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 39e3dbfd7..c6eac52a9 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)] |