You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On alter tables, array columns are generated as non array. This doesn't happen in 1.19.
Relevant log output
No response
Database schema
-- Example queries for sqlc
CREATE TABLE authors (
id BIGSERIAL PRIMARY KEY,
name text NOT NULL,
array1 BIGINT[],
array2 BIGINT array
);
ALTER TABLE authors ADD COLUMN array3 BIGINT[];
ALTER TABLE authors ADD COLUMN array4 BIGINT array;
SQL queries
-- name: GetAuthor :one
SELECT * FROM (select id from authors) t;
Andy-William
changed the title
array column added from alter table doesn't work properly
array column added from alter table are generated as non array
Aug 3, 2023
…n using "ALTER TABLE ADD COLUMN" (#2572)
* fix(postgres): Fixed a problem with array dimensions disappearing when using "ALTER TABLE ADD COLUMN".
close#2571
* test: update endtoend
Version
1.20.0
What happened?
On alter tables, array columns are generated as non array. This doesn't happen in 1.19.
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/09d13d4e8c68bda99da95e6e0af5adf85c60396277614faae148fd8b56a9dec4
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response
The text was updated successfully, but these errors were encountered: