From 6f46ff13685a385d694ad46a08c63ae2b45d8375 Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Thu, 26 Jun 2025 14:55:35 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20NullBool?= =?UTF-8?q?=5FDefaultNull()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgres_func/postgres_func.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres_func/postgres_func.go b/postgres_func/postgres_func.go index 30b1861f..45d5fcfd 100644 --- a/postgres_func/postgres_func.go +++ b/postgres_func/postgres_func.go @@ -139,8 +139,8 @@ func NullFloat32_DefaultNull(Value float32) sql.NullFloat64 { return Otvet } -// NullNullBool_DefaultNull - преобразует значение в sql.NullBool, если пусто то Valid = false -func NullNullBool_DefaultNull(Value bool) sql.NullBool { +// NullBool_DefaultNull - преобразует значение в sql.NullBool, если пусто то Valid = false +func NullBool_DefaultNull(Value bool) sql.NullBool { Otvet := sql.NullBool{} Otvet.Bool = Value Otvet.Valid = true