diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-27 15:11:53 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-27 15:11:53 -0400 |
| commit | 326f2e4f60744d8073eaa4eda69d1dbb46bc9f50 (patch) | |
| tree | 1564027071fa60d1f656edf59e84d8361238b7e7 /test/sql/test_functions.py | |
| parent | 8a307726b34d4adb374b0b618205dbcac31a15f5 (diff) | |
| download | sqlalchemy-326f2e4f60744d8073eaa4eda69d1dbb46bc9f50.tar.gz | |
- [feature] The "required" flag is set to
True by default, if not passed explicitly,
on bindparam() if the "value" or "callable"
parameters are not passed.
This will cause statement execution to check
for the parameter being present in the final
collection of bound parameters, rather than
implicitly assigning None. [ticket:2556]
Diffstat (limited to 'test/sql/test_functions.py')
| -rw-r--r-- | test/sql/test_functions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py index f0fcd4b72..8e5c6bc58 100644 --- a/test/sql/test_functions.py +++ b/test/sql/test_functions.py @@ -268,7 +268,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): def test_functions_with_cols(self): users = table('users', column('id'), column('name'), column('fullname')) calculate = select([column('q'), column('z'), column('r')], - from_obj=[func.calculate(bindparam('x'), bindparam('y'))]) + from_obj=[func.calculate(bindparam('x', None), bindparam('y', None))]) self.assert_compile(select([users], users.c.id > calculate.c.z), "SELECT users.id, users.name, users.fullname " |
