-
Couldn't load subscription status.
- Fork 958
Closed
Labels
Description
When using table inheritance in Postgres, sqlc can't reference any columns in the parent table.
Example setup (from pg_dump):
-- schema.sql
CREATE TABLE public.reservations (
id character varying(255) NOT NULL,
);
CREATE TABLE public.flight_reservations (
flight_id character varying(255)
)
INHERITS (public.reservations);-- queries.sql
-- name: InsertFlightReservation :one
insert into flight_reservations (id, flight_id)
VALUES ($1,
$2) RETURNING (id);Result:
sqlc generate
# package data
queries.sql:111:38: column "id" does not existExpected:
The expected result should be to reference the inherited table columns.