Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Enums are created but are not applied in the table columns, when importing from a SQL file #259

Open
bozoh opened this issue Oct 11, 2024 · 1 comment · May be fixed by #261
Open

Comments

@bozoh
Copy link

bozoh commented Oct 11, 2024

Describe the bug

When importing a PostgreSQL SQL file with enums, these enums are created but are not applied in the table columns. Instead, a blob is set.

To Reproduce

With this SQL script:

CREATE TYPE "Gender" AS ENUM (
  'M',
  'F'
);
CREATE TABLE "people" (
  "id" integer PRIMARY KEY,
  "gender" Gender
) 

Expected behavior

The column "gender" type should be "Gender" (enum) and not a blob.

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows
  • Browser chrome

Additional context

test.sql.txt

@bozoh bozoh changed the title [BUG] [BUG] Enums are created but are not applied in the table columns, when importing from a SQL file Oct 11, 2024
@bozoh
Copy link
Author

bozoh commented Oct 11, 2024

i think it's the same issue of #196

@csc530 csc530 linked a pull request Oct 12, 2024 that will close this issue
2 tasks
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 a pull request may close this issue.

3 participants
@bozoh and others