diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-15 23:34:07 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-15 23:34:07 -0400 |
commit | 99ae0dc821a1a36a6d1a966f51843f6632fc4117 (patch) | |
tree | 7b9f1f348af97340bf008e2e76b7a0898589672d /lib/sqlalchemy/sql/base.py | |
parent | 0c4a1cf963ab5fab876ef2bc56d06b01b83d5c63 (diff) | |
download | sqlalchemy-99ae0dc821a1a36a6d1a966f51843f6632fc4117.tar.gz |
- Fixed bug in new :meth:`.DialectKWArgs.argument_for` method where
adding an argument for a construct not previously included for any
special arguments would fail. fixes #3024
Diffstat (limited to 'lib/sqlalchemy/sql/base.py')
-rw-r--r-- | lib/sqlalchemy/sql/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index 379f61ed7..59f30ed69 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -181,6 +181,8 @@ class DialectKWArgs(object): raise exc.ArgumentError("Dialect '%s' does have keyword-argument " "validation and defaults enabled configured" % dialect_name) + if cls not in construct_arg_dictionary: + construct_arg_dictionary[cls] = {} construct_arg_dictionary[cls][argument_name] = default @util.memoized_property |