diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-28 23:18:04 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-28 23:18:04 +0000 |
| commit | c13846c6b66411e8b11af0948def34691637435b (patch) | |
| tree | 2bab995e2b7254aceffd2cbb408ce24236579c7d /lib | |
| parent | e064aaff1414865d27efe9e399f9e6b5037284c3 (diff) | |
| download | sqlalchemy-c13846c6b66411e8b11af0948def34691637435b.tar.gz | |
- sending None as an argument to func.<something> will produce
an argument of NULL
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 78d07bec8..9bdbc0cb8 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -1565,7 +1565,7 @@ class _Function(_CalculatedClause, FromClause): self.type = sqltypes.to_instance(kwargs.get('type', None)) self.packagenames = kwargs.get('packagenames', None) or [] self._engine = kwargs.get('engine', None) - ClauseList.__init__(self, parens=True, *clauses) + ClauseList.__init__(self, parens=True, *[c is None and _Null() or c for c in clauses]) key = property(lambda self:self.name) |
