]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
String compiler can now literal compile datetime objects
authorFederico Caselli <cfederico87@gmail.com>
Tue, 24 Mar 2020 21:55:46 +0000 (22:55 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 29 Mar 2020 22:08:40 +0000 (18:08 -0400)
commit83eb1b23cbe5a7ee0f2534256cf16f0f865bdbbb
tree323989e9814798157538a5b59114b8010ae1b9e5
parent8e857e3f6beecf7510f741428d8d0ba24f5cb71b
String compiler can now literal compile datetime objects

Add ability to literal compile a :class:`DateTime`, :class:`Date`
or :class:"Time" when using the string dialect for debugging purposes.
This change does not impact real dialect implementation that retain
their current behavior.

Fixes: #5052
Change-Id: Ia3fad2be905c6d35b0106b9a2388c7508f067e90
doc/build/changelog/unreleased_13/5052.rst [new file with mode: 0644]
lib/sqlalchemy/engine/default.py
test/sql/test_compiler.py
test/sql/test_types.py