mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Fix broken benchmarks
This commit is contained in:
parent
4484831550
commit
2100a64dbe
@ -16,7 +16,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_1_rows_1_columns(b *test
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -34,7 +34,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int16_1_rows_1_columns(b *te
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -52,7 +52,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_1_rows_10_columns(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -70,7 +70,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int16_1_rows_10_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -88,7 +88,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_10_rows_1_columns(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -106,7 +106,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int16_10_rows_1_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -124,7 +124,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_100_rows_10_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -142,7 +142,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int16_100_rows_10_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -160,7 +160,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int32_1_rows_1_columns(b *test
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -178,7 +178,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int32_1_rows_1_columns(b *te
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -196,7 +196,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int32_1_rows_10_columns(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -214,7 +214,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int32_1_rows_10_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -232,7 +232,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int32_10_rows_1_columns(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -250,7 +250,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int32_10_rows_1_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -268,7 +268,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int32_100_rows_10_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -286,7 +286,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int32_100_rows_10_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -304,7 +304,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int64_1_rows_1_columns(b *test
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -322,7 +322,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int64_1_rows_1_columns(b *te
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -340,7 +340,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int64_1_rows_10_columns(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -358,7 +358,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int64_1_rows_10_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -376,7 +376,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int64_10_rows_1_columns(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -394,7 +394,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int64_10_rows_1_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -412,7 +412,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int64_100_rows_10_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -430,7 +430,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_int64_100_rows_10_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -448,7 +448,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_uint64_1_rows_1_columns(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -466,7 +466,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_uint64_1_rows_1_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -484,7 +484,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_uint64_1_rows_10_columns(b *te
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -502,7 +502,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_uint64_1_rows_10_columns(b *
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -520,7 +520,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_uint64_10_rows_1_columns(b *te
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -538,7 +538,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_uint64_10_rows_1_columns(b *
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -556,7 +556,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_uint64_100_rows_10_columns(b *
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -574,7 +574,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_uint64_100_rows_10_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -592,7 +592,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_pgtype_Int4_1_rows_1_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -610,7 +610,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_pgtype_Int4_1_rows_1_columns
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -628,7 +628,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_pgtype_Int4_1_rows_10_columns(
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -646,7 +646,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_pgtype_Int4_1_rows_10_column
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -664,7 +664,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_pgtype_Int4_10_rows_1_columns(
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -682,7 +682,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_pgtype_Int4_10_rows_1_column
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -700,7 +700,7 @@ func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_pgtype_Int4_100_rows_10_column
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -718,7 +718,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_int4_to_Go_pgtype_Int4_100_rows_10_colu
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::int4 + 0, n::int4 + 1, n::int4 + 2, n::int4 + 3, n::int4 + 4, n::int4 + 5, n::int4 + 6, n::int4 + 7, n::int4 + 8, n::int4 + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -736,7 +736,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_int64_1_rows_1_columns(b *t
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -754,7 +754,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_int64_1_rows_1_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -772,7 +772,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_int64_1_rows_10_columns(b *
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -790,7 +790,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_int64_1_rows_10_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -808,7 +808,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_int64_10_rows_1_columns(b *
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -826,7 +826,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_int64_10_rows_1_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -844,7 +844,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_int64_100_rows_10_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -862,7 +862,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_int64_100_rows_10_columns
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -880,7 +880,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_float64_1_rows_1_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -898,7 +898,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_float64_1_rows_1_columns(
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -916,7 +916,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_float64_1_rows_10_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -934,7 +934,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_float64_1_rows_10_columns
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -952,7 +952,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_float64_10_rows_1_columns(b
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -970,7 +970,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_float64_10_rows_1_columns
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -988,7 +988,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_float64_100_rows_10_columns
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1006,7 +1006,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_float64_100_rows_10_colum
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1024,7 +1024,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_pgtype_Numeric_1_rows_1_col
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1042,7 +1042,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_pgtype_Numeric_1_rows_1_c
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1060,7 +1060,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_pgtype_Numeric_1_rows_10_co
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1078,7 +1078,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_pgtype_Numeric_1_rows_10_
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 1) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1096,7 +1096,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_pgtype_Numeric_10_rows_1_co
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1114,7 +1114,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_pgtype_Numeric_10_rows_1_
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0 from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1132,7 +1132,7 @@ func BenchmarkQueryTextFormatDecode_PG_numeric_to_Go_pgtype_Numeric_100_rows_10_
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1150,7 +1150,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_numeric_to_Go_pgtype_Numeric_100_rows_1
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select n::numeric + 0, n::numeric + 1, n::numeric + 2, n::numeric + 3, n::numeric + 4, n::numeric + 5, n::numeric + 6, n::numeric + 7, n::numeric + 8, n::numeric + 9 from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v[0], &v[1], &v[2], &v[3], &v[4], &v[5], &v[6], &v[7], &v[8], &v[9]}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1168,7 +1168,7 @@ func BenchmarkQueryTextFormatDecode_PG_Int4Array_With_Go_Int4Array_10(b *testing
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select array_agg(n) from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1186,7 +1186,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_Int4Array_With_Go_Int4Array_10(b *testi
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select array_agg(n) from generate_series(1, 10) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1204,7 +1204,7 @@ func BenchmarkQueryTextFormatDecode_PG_Int4Array_With_Go_Int4Array_100(b *testin
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select array_agg(n) from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1222,7 +1222,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_Int4Array_With_Go_Int4Array_100(b *test
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select array_agg(n) from generate_series(1, 100) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1240,7 +1240,7 @@ func BenchmarkQueryTextFormatDecode_PG_Int4Array_With_Go_Int4Array_1000(b *testi
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select array_agg(n) from generate_series(1, 1000) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.TextFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.TextFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v}, func() error { return nil })
|
||||
if err != nil {
|
||||
@ -1258,7 +1258,7 @@ func BenchmarkQueryBinaryFormatDecode_PG_Int4Array_With_Go_Int4Array_1000(b *tes
|
||||
rows, _ := conn.Query(
|
||||
ctx,
|
||||
`select array_agg(n) from generate_series(1, 1000) n`,
|
||||
[]any{pgx.QueryResultFormats{pgx.BinaryFormatCode}},
|
||||
pgx.QueryResultFormats{pgx.BinaryFormatCode},
|
||||
)
|
||||
_, err := pgx.ForEachRow(rows, []any{&v}, func() error { return nil })
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user