diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-03 13:44:57 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-04-03 14:47:52 -0400 |
| commit | ccadbec82555c53eefa889160510f5af1e224709 (patch) | |
| tree | 959b4309fcc26191ef791034bda76e6fda0d1bdb /lib/sqlalchemy/testing | |
| parent | 1dffb7cedeb009ca6c532db558bd0588dd846957 (diff) | |
| download | sqlalchemy-ccadbec82555c53eefa889160510f5af1e224709.tar.gz | |
use .fromisoformat() for sqlite datetime, date, time parsing
SQLite datetime, date, and time datatypes now use Python standard lib
``fromisoformat()`` methods in order to parse incoming datetime, date, and
time string values. This improves performance vs. the previous regular
expression-based approach, and also automatically accommodates for datetime
and time formats that contain either a six-digit "microseconds" format or a
three-digit "milliseconds" format.
Fixes: #7029
Change-Id: I67aab4fe5ee3055e5996050cf4564981413cc221
Diffstat (limited to 'lib/sqlalchemy/testing')
| -rw-r--r-- | lib/sqlalchemy/testing/suite/test_types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_types.py b/lib/sqlalchemy/testing/suite/test_types.py index 0940eab9b..cc14dd9c4 100644 --- a/lib/sqlalchemy/testing/suite/test_types.py +++ b/lib/sqlalchemy/testing/suite/test_types.py @@ -432,7 +432,7 @@ class DateTimeMicrosecondsTest(_DateFixture, fixtures.TablesTest): __requires__ = ("datetime_microseconds",) __backend__ = True datatype = DateTime - data = datetime.datetime(2012, 10, 15, 12, 57, 18, 396) + data = datetime.datetime(2012, 10, 15, 12, 57, 18, 39642) class TimestampMicrosecondsTest(_DateFixture, fixtures.TablesTest): |
