Discussion:
[Middlegen-user] [BUG?] The first field of a table is always considered to be PK.
Marco Papini
2002-07-03 12:31:07 UTC
Permalink
I've noticed that Middlegen assumes the first field of a table is a PK.

Just try with this table :

CREATE TABLE A (
a1 INT,
a2 INT NOT NULL,
a3 INT,
PRIMARY KEY (a2)
);

It's not a good table design, I know, but sometimes may happen with
auto-generated DDL! ;)

Thanks

Marco

Loading...