Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnrO7-0003IF-6T for pgsql-jdbc@arkaria.postgresql.org; Fri, 19 Nov 2021 00:04:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnrO5-0005uX-E1 for pgsql-jdbc@arkaria.postgresql.org; Fri, 19 Nov 2021 00:04:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnrO5-0005uO-5L for pgsql-jdbc@lists.postgresql.org; Fri, 19 Nov 2021 00:04:17 +0000 Received: from out-25.smtp.github.com ([192.30.252.208] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnrO0-0000dV-6C for pgsql-jdbc@lists.postgresql.org; Fri, 19 Nov 2021 00:04:16 +0000 Received: from github.com (hubbernetes-node-8c31778.ash1-iad.github.net [10.56.209.84]) by smtp.github.com (Postfix) with ESMTPA id 168AB840493 for ; Thu, 18 Nov 2021 16:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1637280250; bh=v5zlhj+ya4td7JZ7ht6dQtAij6zxHRhj+Q+hHtvAdWI=; h=Date:From:To:Subject:From; b=GozwoJV7qFP1/wujyw4E+nGyxqK9DmArxk6rCMMZ74mYkZttwEJ1b2mmKqzlgYCMu xbcfXfT1gB17yoHGRGEAqFFEa981GViZovg8KVrTOIc7vpib4EuSZZCKtg87GU57IV 6kDPeeSsRrH2Kujv3/dFaAWFPfWPjGc99kWg+9k0= Date: Thu, 18 Nov 2021 16:04:10 -0800 From: JoelRabinovitch To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 64ac1d: fixForIsAutoGenerated Fix For IS_AUTOGENERATED Fla... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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!