]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added new datatype :class:`.oracle.DATE`, which is a subclass of
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Mar 2014 22:22:17 +0000 (18:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Mar 2014 22:22:17 +0000 (18:22 -0400)
commitbe3c185fd48c2abcc5d9f54dd0c415e15c33184f
tree243b721f864930e9a20874c7cbacf64b1e184bff
parent56ef17e0f7b4a58fff6f35f15b1e8a5437191bcc
- Added new datatype :class:`.oracle.DATE`, which is a subclass of
:class:`.DateTime`.  As Oracle has no "datetime" type per se,
it instead has only ``DATE``, it is appropriate here that the
``DATE`` type as present in the Oracle dialect be an instance of
:class:`.DateTime`.  This issue doesn't change anything as far as
the behavior of the type, as data conversion is handled by the
DBAPI in any case, however the improved subclass layout will help
the use cases of inspecting types for cross-database compatibility.
Also removed uppercase ``DATETIME`` from the Oracle dialect as this
type isn't functional in that context.  fixes #2987
doc/build/changelog/changelog_09.rst
doc/build/dialects/oracle.rst
lib/sqlalchemy/dialects/oracle/__init__.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
test/dialect/test_oracle.py
test/engine/test_reflection.py