Skip to content

Aliases are not validated #437

Closed
Closed
@dharmjit

Description

@dharmjit

If these is mismatch in aliases as used below, no errors are thrown by sqlc generate:

-- Example queries for sqlc
CREATE TABLE authors (
  id   BIGSERIAL PRIMARY KEY,
  name text      NOT NULL,
  bio  text
);

-- name: GetAuthor :one
SELECT * FROM authors a
WHERE p.id = $1 LIMIT 1;

Playground

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