[pgjdbc/pgjdbc] 64ac1d: fixForIsAutoGenerated Fix For IS_AUTOGENERATED Fla...
[pgjdbc/pgjdbc] 64ac1d: fixForIsAutoGenerated Fix For IS_AUTOGENERATED Fla...
От:
JoelRabinovitch <noreply@github.com>
Дата:
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 64ac1d2fb23e867869c5ac37a19e011e0e6be678
https://github.com/pgjdbc/pgjdbc/commit/64ac1d2fb23e867869c5ac37a19e011e0e6be678
Author: JoelRabinovitch
Date: 2021-11-18 (Thu, 18 Nov 2021)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
Log Message:
-----------
fixForIsAutoGenerated Fix For IS_AUTOGENERATED Flag (#2348)
* fixForIsAutoGenerated Fix For IS_AUTOGENERATED Flag
Adjust logic to set the IS_AUTOGENERATED flag correctly based on the
information from the attgenerated column in the pg_attribute table.
This change only applies to PostgreSQL version 12 and higher. For lower
version, the value will be returned as "NO".
Thanks for the addition!