From 31c98fb422fddde79b16b66dc7d571afe11ca7e1 Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Thu, 3 Jul 2025 11:28:00 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20postgres?= =?UTF-8?q?=5Fpgtype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgres_pgtype/date.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgres_pgtype/date.go b/postgres_pgtype/date.go index da9e2652..fae9d295 100644 --- a/postgres_pgtype/date.go +++ b/postgres_pgtype/date.go @@ -251,7 +251,8 @@ func (scanPlanBinaryDateToDateScanner) 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}) + //return scanner.ScanDate(pgtype.Date{}) } if len(src) != 4 {