From: Sam Fletcher <147140110+sof202@users.noreply.github.com> Date: Tue, 28 Jul 2026 18:03:11 +0000 (+0100) Subject: correct '-' to ':' to sync regexp and storage_format (#13463) X-Git-Tag: rel_2_0_52~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d9344b0a95dae3613fc90ef40523c8e11046266;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git correct '-' to ':' to sync regexp and storage_format (#13463) (cherry picked from commit d25b6ce2ed97d7cc29fed06e3ebe6c68945cb5a6) --- diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index abd9366480..08436c82f3 100644 --- a/lib/sqlalchemy/dialects/sqlite/base.py +++ b/lib/sqlalchemy/dialects/sqlite/base.py @@ -1128,7 +1128,7 @@ class DATETIME(_DateTimeMixin, sqltypes.DateTime): storage_format=( "%(year)04d/%(month)02d/%(day)02d %(hour)02d:%(minute)02d:%(second)02d" ), - regexp=r"(\d+)/(\d+)/(\d+) (\d+)-(\d+)-(\d+)", + regexp=r"(\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+)", ) :param truncate_microseconds: when ``True`` microseconds will be truncated