Skip to content

Aliases are not validated #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dharmjit opened this issue Apr 6, 2020 · 1 comment
Closed

Aliases are not validated #437

dharmjit opened this issue Apr 6, 2020 · 1 comment
Labels
📚 postgresql bug Something isn't working

Comments

@dharmjit
Copy link

dharmjit commented Apr 6, 2020

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

@kyleconroy kyleconroy added the enhancement New feature or request label Apr 6, 2020
@kyleconroy
Copy link
Collaborator

Thanks for the report. As you can see, there's still a bunch of work to be done. I appreciate all the issues you've opened.

@kyleconroy kyleconroy added bug Something isn't working 📚 postgresql and removed enhancement New feature or request labels Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 postgresql bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants