diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-24 06:28:27 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-24 06:28:27 +0000 |
commit | b1deaf1fb76e2ed60da4bea5e1b5cc2b732b8a23 (patch) | |
tree | e2d02b4b610a4768c38749675f094fce6b444783 /lib/sqlalchemy/sql.py | |
parent | cd39a0a78049f0e1978bc7990d7c677dbb891ac4 (diff) | |
download | sqlalchemy-b1deaf1fb76e2ed60da4bea5e1b5cc2b732b8a23.tar.gz |
some more tweaks to get more advanced polymorphic stuff to work
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r-- | lib/sqlalchemy/sql.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index b945587bd..d0ab4578a 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -13,7 +13,7 @@ from exceptions import * import string, re, random types = __import__('types') -__all__ = ['text', 'table', 'column', 'func', 'select', 'update', 'insert', 'delete', 'join', 'and_', 'or_', 'not_', 'union', 'union_all', 'desc', 'asc', 'outerjoin', 'alias', 'subquery', 'literal', 'bindparam', 'exists'] +__all__ = ['text', 'table', 'column', 'func', 'select', 'update', 'insert', 'delete', 'join', 'and_', 'or_', 'not_', 'union', 'union_all', 'null', 'desc', 'asc', 'outerjoin', 'alias', 'subquery', 'literal', 'bindparam', 'exists'] def desc(column): """returns a descending ORDER BY clause element, e.g.: @@ -705,9 +705,11 @@ class TextClause(ClauseElement): def _get_from_objects(self): return [] -class Null(ClauseElement): +class Null(ColumnElement): """represents the NULL keyword in a SQL statement. public contstructor is the null() function.""" + def __init__(self): + self.type = sqltypes.NULLTYPE def accept_visitor(self, visitor): visitor.visit_null(self) def _get_from_objects(self): |