Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7PJJ-0002Fa-Em for pgsql-jdbc@arkaria.postgresql.org; Thu, 27 Feb 2020 19:59:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7PJI-0007eX-8y for pgsql-jdbc@arkaria.postgresql.org; Thu, 27 Feb 2020 19:59:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7PJH-0007eQ-Sc for pgsql-jdbc@lists.postgresql.org; Thu, 27 Feb 2020 19:59:04 +0000 Received: from o6.sgmail.github.com ([192.254.113.101]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j7PJF-0004UK-C8 for pgsql-jdbc@lists.postgresql.org; Thu, 27 Feb 2020 19:59:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; h=from:to:subject:mime-version:content-type:content-transfer-encoding; s=s20150108; bh=S+Wsj9u9IgrMscJaWB8hYCkF5m6U51UFqh4eyQLt4HA=; b= WFojmfMnW5nNp4lrUtIW6DShijC07BVMj3zvT8EX7M3dRsqKMgB3bl5ebSc7J5t7 hUA21bV8CnDb0zSI4FxWNQL1hFuxFKHQPbuE97uOFjE5Lg7RWJeaG7R3JJ0xonvv z54acHv+32F3YcqY9m6XdaoMmLAwYSeAdJZxuG0Kfck= Received: by filter1557p1mdw1.sendgrid.net with SMTP id filter1557p1mdw1-30445-5E581F84-F 2020-02-27 19:59:00.214331868 +0000 UTC m=+1807947.668850807 Received: from github-lowworker-f045d1f.ac4-iad.github.net (unknown [140.82.115.67]) by ismtpd0046p1iad1.sendgrid.net (SG) with ESMTP id 3fuFGjUyRp68JvxTyrKKqw for ; Thu, 27 Feb 2020 19:59:00.150 +0000 (UTC) Received: from github.com (localhost [127.0.0.1]) by github-lowworker-f045d1f.ac4-iad.github.net (Postfix) with ESMTP id 132D93D4001F for ; Thu, 27 Feb 2020 11:59:00 -0800 (PST) Date: Thu, 27 Feb 2020 19:59:00 +0000 (UTC) From: Mike Goodman To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 5fbe04: fix: getProcedures returns only procedures (not fu... 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 X-SG-EID: f0kCtr4+kOV24JpVqX2lDXk15zO1V/uGBhMWOVUBmYyZ2+03jJQDlco0YI0YrNLPO91zaIP5+Zh7FM /8iZhyZNmL/T7GYeyXcoe1FkTPAmTMJ1avWRSgDkXlQR2fGvjqvozPo6Cb8IriAvjAxddANqjjuhP1 b/P86TaPWNRhzZdjcCKAgYmxOLc5ar+hmRQzzEwWAl+lz0+qmvoDtXFa/MYCjILfP1fvG1iKjfJDyZ g= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 5fbe04626c64b7c46a22a0cea108921305b14074 https://github.com/pgjdbc/pgjdbc/commit/5fbe04626c64b7c46a22a0cea108921305b14074 Author: Mike Goodman Date: 2020-02-27 (Thu, 27 Feb 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataHideUnprivilegedObjectsTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java Log Message: ----------- fix: getProcedures returns only procedures (not functions) for psql11+ (#1723) * fix: getProcedures returns only procedures (not functions) for psql11+ Currently the PGDatabaseMetaData.getProcedures() method returns both procedures and functions. This made sense prior to PostgreSQL11, but now actual procedures can be created instead of just functions, and pgjdbc has an added getFunctions() method to distinguish between the two. For only PostgreSQL version 11 and onward, this will make getFunctions() return only functions and getProcedures() return only procedures. I believe this closes #1340 and #1629, which both seem to essentially be the same thing? * only create procedure in tests for psql versions 11 and higher * testGetProcedures now checks for functions or procedures depending on psql version * only test 'create procedure' for psql 11+