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
{{ message }}
Repository navigation
[BUG]Some keywords that are not recognized when importing SQL source code (PG). #540
PostgreSQL somewhy exports empty enums as CREATE TYPE "role_t" AS ENUM (); what implicates failing import later.
See
`CREATE TYPE "role_t" AS ENUM ();
CREATE TABLE IF NOT EXISTS "user_account_permission" (
"user_id" smallint NOT NULL,
"account_id" smallint NOT NULL,
"role" role_t
);`
First it fails to import with following error: can't access property "parentheses", Jr is null.
I guess those issues are related.
Activity
1ilit commentedon Jul 29, 2025
can you also add the definitions of the enums that didnt get created
jessekoester commentedon Oct 4, 2025
I would like to take this issue is it available to work on?
Yaksinikos commentedon May 19, 2026
PostgreSQL somewhy exports empty enums as
CREATE TYPE "role_t" AS ENUM ();what implicates failing import later.See
First it fails to import with following error:
can't access property "parentheses", Jr is null.I guess those issues are related.
fixing partial drawdb-io#540 (added enum placeholder on export )
trying to fix initial drawdb-io#540 issue by implicating generated_by…
Yaksinikos commentedon May 19, 2026
Just tested my fixes, also added comment ignore behaviour for PG - seems to work running on my vite dev instance.