Skip to content

Conversation

@timwmillard
Copy link
Owner

Fixed issue when ALTER TYPE does not update all the columns that uses that type. Example below does not work correctly, but does with this fix.

CREATE TYPE event AS enum ('START', 'STOP');

CREATE TABLE log_lines (
  id     BIGSERIAL    PRIMARY KEY,
  status "event"  NOT NULL
);

ALTER TYPE event RENAME TO "new_event";

-- name: ListAuthors :many
SELECT * FROM log_lines;

@timwmillard timwmillard merged commit efb08b5 into master Apr 9, 2021
timwmillard pushed a commit that referenced this pull request Oct 1, 2025
…es (sqlc-dev#2089)

* fix: resolve duplicate fields generated when inheriting multiple tables

* chore: comments

* fix: resolve duplicate fields generated when inheriting multiple tables (#1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants