-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
Describe the bug
Importing Postgres schemas with arrays fails with the following error:
{"id":"6U1px3PHl0T0RjJ7ehIGi","name":"table_0","x":0,"y":0,"locked":false,"fields":[{"name":"id","type":"INTEGER","default":"","check":"","primary":true,"unique":true,"notNull":true,"increment":true,"comment":"","id":"IS44C5o0z6P6kY5yfkfXG"},{"id":"minJnZ_3uLWJu5UY3fX5x","name":"test","type":"TEXT","default":"","check":"","primary":false,"unique":false,"notNull":false,"increment":false,"comment":"","size":"","values":[],"isArray":true}],"comment":"","indices":[],"color":"#175e7a"}
To Reproduce
Steps to reproduce the behavior:
- Create Postgres Project
- Go to 'File/Import from SQL'
- Select SQL schema file with array, like one of the table definitions from the docs page: https://www.postgresql.org/docs/current/arrays.html
- Click 'Import'
- See error
Expected behavior
Correctly import Postgres tables with arrays
Desktop (please complete the following information):
- OS: Debian 13
- Browser: Zen 1.14b (Firefox 140.0.2) (64-bit)
Additional context
Imported code:
CREATE TABLE sal_emp (
name text,
pay_by_quarter integer[],
schedule text[][]
);
Metadata
Metadata
Assignees
Labels
No labels