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

Script generated by ERD Tool don't reproduce geometry type. #8344

Open
fguerra06 opened this issue Jan 8, 2025 · 3 comments
Open

Script generated by ERD Tool don't reproduce geometry type. #8344

fguerra06 opened this issue Jan 8, 2025 · 3 comments
Labels

Comments

@fguerra06
Copy link

Hello

Describe the bug

Script generated by ERD Tool don't reproduce geometry type.

To Reproduce

Steps to reproduce the behavior:

1:
CREATE TABLE IF NOT EXISTS test.point
(
id_point character varying(500) COLLATE pg_catalog."default" NOT NULL,
fk_polyg character varying(500) COLLATE pg_catalog."default",
geom geometry(Point,2154)
);

2: Right click on schema "test" ; "create ERD from schema"
3. On ERD : click on "generate SQL"
4. See the error :
-- This script was generated by the ERD tool in pgAdmin
BEGIN;
CREATE TABLE IF NOT EXISTS test.point
(
id_point character varying(500) COLLATE pg_catalog."default" NOT NULL,
fk_polyg character varying(500) COLLATE pg_catalog."default",
geom geometry
);
END;

Expected behavior

Reproduice the geometry type (point) and the EPSG (2154)

Desktop (please complete the following information):

  • OS: [ Windows ]
  • Version: [PGadmin 8.14]

Thank you for your help if the bug source is me :)

@adityatoshniwal
Copy link
Contributor

The actual problem is with the table dialog where extra info for the geometry column cannot be entered/missing. And so ERD is not able to generate the SQL as info is not available.
image

@fguerra06
Copy link
Author

Thank you for your answer adityatoshniwal,
Does it mean that I'm doing something wrong?

Fabien

@adityatoshniwal
Copy link
Contributor

Thank you for your answer adityatoshniwal, Does it mean that I'm doing something wrong?

No, I just mentioned the root cause of the issue. It still is a bug and need to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants