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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d25b6ce2ed97d7cc29fed06e3ebe6c68945cb5a6;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git correct '-' to ':' to sync regexp and storage_format (#13463) --- diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index 0558c69df1..70308b43c3 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