Skip to content

To check if batch is closed if you need to return a pointer to the type the wrong code is generated #1959

Closed
@flymedllva

Description

@flymedllva

Version

v1.16.0 or 3623ec8, version v1.15.0 has the correct behavior, since there is no batch closeness check

What happened?

To check if batch is closed if you need to return a pointer to the type the wrong code is generated

Screenshot 2022-11-19 at 17 39 42

SQL queries

:batchone

Configuration

version: "2"
engine: "postgresql"
sql_package: "pgx/v4"
emit_db_tags: true
emit_result_struct_pointers: true

What operating system are you using?

macOS

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions