diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-04-16 00:53:21 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-04-16 00:53:21 +0000 |
commit | 24797113708c0f19ef0d5d81e2950b33f8c1a425 (patch) | |
tree | 7e44582f775579cf40679112a2611e1bbab84d87 /lib/sqlalchemy/sql/operators.py | |
parent | f5126ab3a169b6f8a9171868fe32b2bd385f8b8f (diff) | |
download | sqlalchemy-24797113708c0f19ef0d5d81e2950b33f8c1a425.tar.gz |
- Support for COLLATE: collate(expr, col) and expr.collate(col)
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 0047d1c73..dfd638ecb 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -22,6 +22,9 @@ def is_(): def isnot(): raise NotImplementedError() +def collate(): + raise NotImplementedError() + def op(a, opstring, b): return a.op(opstring)(b) @@ -105,6 +108,7 @@ _PRECEDENCE = { and_:3, or_:2, comma_op:-1, + collate: -2, as_:-1, exists:0, _smallest: -1000, |