From 4d2bdfc4c6c64cd3e83086626b3d451752004f8b Mon Sep 17 00:00:00 2001 From: Vadim Voitenko Date: Mon, 6 May 2024 22:46:56 +0300 Subject: [PATCH] fix: fixed TableColumnsQuery scanning for pg 11 --- internal/db/postgres/context/table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/postgres/context/table.go b/internal/db/postgres/context/table.go index 7c4028ae..5867efd0 100644 --- a/internal/db/postgres/context/table.go +++ b/internal/db/postgres/context/table.go @@ -222,7 +222,7 @@ func getColumnsConfig(ctx context.Context, tx pgx.Tx, oid toolkit.Oid, version i &column.NotNull, &column.Length, &column.Num, &column.TypeLength, &column.IsGenerated) } else { err = rows.Scan(&column.Name, &column.TypeOid, &column.TypeName, - &column.NotNull, &column.Length, &column.Num) + &column.NotNull, &column.Length, &column.Num, &column.TypeLength) } if err != nil { return nil, fmt.Errorf("cannot scan tableColumnQuery: %w", err)