CREATE TABLE public.projects (
id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
name character varying(100) NOT NULL
);
CREATE TABLE public.project_saves (
user_id uuid NOT NULL,
project_id uuid NOT NULL,
created_at timestamp without time zone DEFAULT now()
);
SQL queries
SELECT r.*
FROM (
project_saves
JOIN projects
ON project_saves.project_id = projects.id
) r;
Version
1.12.0
What happened?
running
sqlc generate
on a select statement that uses a subselect that includes a join operation results in an empty columnsetRelevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/7a3d51abd4191695fa4412ad377a93f3e6f764b5630dea0cb4e5051390f1d9ea
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go