diff options
author | Michael Trier <mtrier@gmail.com> | 2010-12-19 19:25:33 -0500 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2010-12-19 19:25:33 -0500 |
commit | 15ea17d7f882fec3f892a22612da4827780c8dae (patch) | |
tree | 95470fa103945fecc63ce28045be46e1e5f61c1d /lib/sqlalchemy/sql/compiler.py | |
parent | 0e8112d32290382b1b38f84bb254543a533ae995 (diff) | |
download | sqlalchemy-15ea17d7f882fec3f892a22612da4827780c8dae.tar.gz |
Added NULLS FIRST and NULLS LAST support.
It's implemented as an extension to the asc() and desc() operators, called
nullsfirst() and nullslast(). [ticket:723]
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 0c76f3e74..8bd728a7c 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -101,6 +101,8 @@ OPERATORS = { # modifiers operators.desc_op : ' DESC', operators.asc_op : ' ASC', + operators.nullsfirst_op : ' NULLS FIRST', + operators.nullslast_op : ' NULLS LAST', } FUNCTIONS = { |