[pgjdbc/pgjdbc] 1de16b: Make autosave=server missing server support error ...

Craig Ringer <[email protected]>
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <5b5ec4102afab_730f2b232c2d8f8c2530@hookshot-fe-cace476.cp1-iad.github.net.mail>
  Branch: refs/heads/sql07-autosave-statement-rollback
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 1de16b56aecd10b609b729b073c7a5edfb80892f
      https://github.com/pgjdbc/pgjdbc/commit/1de16b56aecd10b609b729b073c7a5edfb80892f
  Author: Craig Ringer <[email protected]>
  Date:   2018-07-30 (Mon, 30 Jul 2018)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java

  Log Message:
  -----------
  Make autosave=server missing server support error more specific

autosave=server would report "Transaction rollback statements are not supported"
even for completely unrelated connection errors like

    org.postgresql.util.PSQLException: Transaction rollback statements are not supported
      ...
    Caused by: org.postgresql.util.PSQLException: FATAL: role "test" does not exist
      ...

Now it'll properly re-throw for other cases.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.