From 15ea17d7f882fec3f892a22612da4827780c8dae Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sun, 19 Dec 2010 19:25:33 -0500 Subject: 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] --- lib/sqlalchemy/sql/compiler.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/sql/compiler.py') 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 = { -- cgit v1.2.1