]> 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>
Mon, 30 Mar 2020 01:57:53 +0000 (21:57 -0400)
commitfea89ef47080a581d79aafc1dc649bf21e165793
treeabb1c10e8660b1d8408ad928bfde21a614b06aad
parent46b4eedb1ba82493a1ea2c773070b77356583986
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
(cherry picked from commit 83eb1b23cbe5a7ee0f2534256cf16f0f865bdbbb)
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