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

different ID PRIMARY in diagramm and SQL Editor #7229

Closed
rlsoft80 opened this issue Feb 21, 2024 · 3 comments
Closed

different ID PRIMARY in diagramm and SQL Editor #7229

rlsoft80 opened this issue Feb 21, 2024 · 3 comments
Assignees
Milestone

Comments

@rlsoft80
Copy link

Hello,
There are a diffèrent KEY PRIMARY
In the diagramm : this is "id"
In the exportation SQL : this id "id_corps_metier"
I think, the export SQL take the first integer column after id
sql
schema

@adityatoshniwal
Copy link
Contributor

Hi @rlsoft80,
I tried all possible ways to reproduce this, and it works fine for me. Can you share some reproducible steps and pgerd file as well?
image

BEGIN;


CREATE TABLE IF NOT EXISTS other.test
(
    id integer,
    id_corps integer,
    PRIMARY KEY (id)
);
END;

@rlsoft80
Copy link
Author

rlsoft80 commented Feb 28, 2024 via email

adityatoshniwal added a commit to adityatoshniwal/pgadmin4 that referenced this issue Mar 6, 2024
akshay-joshi pushed a commit that referenced this issue Mar 8, 2024
@akshay-joshi akshay-joshi added this to the 8.5 milestone Mar 8, 2024
@anilsahoo20 anilsahoo20 self-assigned this Mar 8, 2024
@anilsahoo20
Copy link
Contributor

Tested and verified on snapshot build: https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2024-03-11/
Environment: macOs ventura 13.5.1
package: arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants