diff options
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/type_api.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/type_api.py b/lib/sqlalchemy/sql/type_api.py index 8f502ac02..701e2a44a 100644 --- a/lib/sqlalchemy/sql/type_api.py +++ b/lib/sqlalchemy/sql/type_api.py @@ -129,6 +129,19 @@ class TypeEngine(Visitable): """ + evaluates_none = False + """If True, the Python constant ``None`` is considered to be handled + explicitly by this type. + + The ORM will use this flag to ensure that a positive value of ``None`` + is definitely passed to the backend, ignoring whether or not there + are Python or server side defaults on this column. + + .. versionadded:: 1.1 + + + """ + def compare_against_backend(self, dialect, conn_type): """Compare this type against the given backend type. |
