1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00

сделал postgres_pgtype

This commit is contained in:
Nikitin Aleksandr
2025-07-03 15:08:11 +03:00
parent 422b1c33e5
commit b422d9938c
4 changed files with 10 additions and 5 deletions

View File

@@ -280,7 +280,8 @@ func (scanPlanTextAnyToDateScanner) Scan(src []byte, dst any) error {
scanner := (dst).(pgtype.DateScanner)
if src == nil {
return scanner.ScanDate(pgtype.Date{})
return scanner.ScanDate(pgtype.Date{Valid: true}) //sanek
//return scanner.ScanDate(pgtype.Date{})
}
sbuf := string(src)