From 9a45a33e7eaa59b073681d941a223576d50c0a7b Mon Sep 17 00:00:00 2001 From: Yuriy Kaminskiy Date: Fri, 6 Dec 2024 18:27:37 +0300 Subject: [PATCH] shrink placeholder declaration: Optional -> type? --- app/server/datasource/rdbms/ydb/connection_native.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/datasource/rdbms/ydb/connection_native.go b/app/server/datasource/rdbms/ydb/connection_native.go index df26d3af..d12cee81 100644 --- a/app/server/datasource/rdbms/ydb/connection_native.go +++ b/app/server/datasource/rdbms/ydb/connection_native.go @@ -279,7 +279,7 @@ func (c *connectionNative) rewriteQuery(params *rdbms_utils.QueryParams) (string } if arg.YdbType.GetOptionalType() != nil { - typeName = fmt.Sprintf("Optional<%s>", typeName) + typeName = fmt.Sprintf("%s?", typeName) } buf.WriteString(fmt.Sprintf("DECLARE $p%d AS %s;\n", i, typeName)) //nolint:revive