(Postgres) GENERATED AS IDENTITY
Posted: Thu 26 Nov 2020 09:03
Hi,
since Postgres 10 there is an option to create an column as IDENTITY. Postgres creates an internal sequence which cannot be dropped.
see https://www.postgresql.org/docs/12/sql-createtable.html
The problem is that the unidac components are not aware of this option an so the IsAutoIncrement in the FieldDesc is false.
To get this information you have to look in the pg_attributte catalog an look if attidentity is not an empty char.
see https://www.postgresql.org/docs/10/cata ... ibute.html
Please implement this as soon as possible.
Greetings
Manuel Bursch
since Postgres 10 there is an option to create an column as IDENTITY. Postgres creates an internal sequence which cannot be dropped.
see https://www.postgresql.org/docs/12/sql-createtable.html
The problem is that the unidac components are not aware of this option an so the IsAutoIncrement in the FieldDesc is false.
To get this information you have to look in the pg_attributte catalog an look if attidentity is not an empty char.
see https://www.postgresql.org/docs/10/cata ... ibute.html
Please implement this as soon as possible.
Greetings
Manuel Bursch