Skip to content

UNION query not working #778

Closed
Closed
@oscartbeaumont

Description

@oscartbeaumont

I am trying to use the SQL UNION operator with SQLC and am having some issues. Below is an example query from my queries.sql file.

-- name: QueryMe :many
SELECT 1 AS one UNION SELECT 2 AS two;

When I run sqlc generate I get the following output.

# package db
error generating code: template: table:255:79: executing "queryCode" at <.Ret.Type>: error calling Type: no type for QueryValue:

Thanks for any help that can be provided and the awesome project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions