]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
correct '-' to ':' to sync regexp and storage_format (#13463)
authorSam Fletcher <147140110+sof202@users.noreply.github.com>
Tue, 28 Jul 2026 18:03:11 +0000 (19:03 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 28 Jul 2026 18:04:24 +0000 (20:04 +0200)
(cherry picked from commit d25b6ce2ed97d7cc29fed06e3ebe6c68945cb5a6)

lib/sqlalchemy/dialects/sqlite/base.py

index abd93664802d8fb900d15d68322f57d3e45b5f9f..08436c82f338d64238c56d9d16eba7c341b7aa45 100644 (file)
@@ -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