pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Goodman <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] 5fbe04: fix: getProcedures returns only procedures (not fu...
Date: Thu, 27 Feb 2020 19:59:00 +0000 (UTC)
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/0faf9c-5fbe04@github.com> (raw)

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 5fbe04626c64b7c46a22a0cea108921305b14074
      https://github.com/pgjdbc/pgjdbc/commit/5fbe04626c64b7c46a22a0cea108921305b14074
  Author: Mike Goodman <MSGoodman@users.noreply.github.com>
  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+







Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/0faf9c-5fbe04@github.com>
Permalink:  ../pgjdbc%2Fpgjdbc%2Fpush%2Frefs%2Fheads%2Fmaster%2F0faf9c-5fbe04@github.com/
Also on:    postgresql.org/message-id/pgjdbc/pgjdbc/push/refs/heads/master/0faf9c-5fbe04@github.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: noreply@github.com
  Subject: Re: [pgjdbc/pgjdbc] 5fbe04: fix: getProcedures returns only procedures (not fu...
  In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/0faf9c-5fbe04@github.com>
  References: <pgjdbc/pgjdbc/push/refs/heads/master/0faf9c-5fbe04@github.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox