Igor Serganov
8d65201a93
db: check errors in openDB
...
On the SQLite path openDB called db.DB() and configured the pool
before looking at the error from gorm.Open, and both backends
discarded the error from db.DB(). A failed open returned a
half-initialised *gorm.DB alongside the error, and a nil *sql.DB
from db.DB() would have been dereferenced.
Return early on either error so callers get a nil handle and the
original error.
2026-10-22 22:33:03 +02:00
..
2026-10-18 20:53:18 +02:00
2026-04-13 17:23:47 +01:00
2026-10-15 10:50:32 +02:00
2026-10-22 22:33:03 +02:00
2026-10-07 11:10:38 +02:00
2026-10-18 20:53:18 +02:00
2026-10-22 22:17:36 +02:00
2026-10-22 22:17:36 +02:00
2026-09-25 21:24:37 +02:00
2026-10-22 22:17:27 +02:00
2026-10-22 22:17:36 +02:00
2026-08-29 18:18:35 +02:00
2026-06-19 15:21:00 +02:00
2026-10-18 20:53:18 +02:00
2026-10-18 20:53:18 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-10-15 13:28:12 +02:00
2026-06-21 04:17:03 +02:00
2026-06-26 09:18:06 +02:00
2026-06-26 09:18:06 +02:00
2026-06-26 09:18:06 +02:00
2026-10-18 20:53:18 +02:00
2026-06-24 18:41:06 +02:00
2026-10-18 20:53:18 +02:00
2026-10-18 20:53:18 +02:00
2026-10-18 20:53:18 +02:00
2026-07-28 11:55:17 +02:00
2026-10-09 11:44:37 +02:00
2026-09-30 19:03:13 +02:00
2026-06-17 16:12:19 +02:00
2026-10-07 22:55:03 +02:00
2026-10-07 22:55:03 +02:00
2026-05-19 09:55:22 +02:00
2026-10-18 20:53:18 +02:00
2026-10-18 20:53:18 +02:00
2026-05-19 09:55:22 +02:00
2026-06-08 10:04:49 +02:00
2026-04-13 17:23:47 +01:00
2026-09-09 19:01:43 +02:00
2026-09-30 17:21:02 +02:00
2026-06-05 15:00:59 +02:00
2026-08-25 21:59:00 +02:00
2026-10-08 12:14:58 +02:00
2026-09-30 17:21:02 +02:00
2026-05-18 17:17:55 +02:00
2026-06-17 16:12:19 +02:00
2026-06-17 16:12:19 +02:00
2026-04-18 09:33:41 +02:00