Re: Connection to PgSQL does not use SSL with JDBC driver 9.4 if the parameter is passed through Properties rather than URL - Mailing list pgsql-jdbc

From Jeremy Whiting
Subject Re: Connection to PgSQL does not use SSL with JDBC driver 9.4 if the parameter is passed through Properties rather than URL
Date
Msg-id 5698FF3F.4000104@redhat.com
Whole thread Raw
In response to Re: Connection to PgSQL does not use SSL with JDBC driver 9.4 if the parameter is passed through Properties rather than URL  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Responses Re: Connection to PgSQL does not use SSL with JDBC driver 9.4 if the parameter is passed through Properties rather than URL
List pgsql-jdbc
On 15/01/16 10:24, Vladimir Sitnikov wrote:
> Hi,
>
> This sounds like a bug.
> Can you file a PR?
> Vladimir
>
>
Hi,
 Take a look at this PR [1]. It fixed a regression released in 1205 release.

 The PR solved the problem of API calls to Driver.setLogLevel(int) not
getting overwritten by a default value being loaded in PgConnection at
line 187 [2].

 It's good this has been raised though and a PR necessary to fix. The
change could go here [3] to adapt to the semantic change of isPresent
method. Now it does not fall back to the default.

Jeremy

[1] https://github.com/pgjdbc/pgjdbc/pull/438
[2]
https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java#L187
[3]
https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java#L79



pgsql-jdbc by date:

Previous
From: Vladimir Sitnikov
Date:
Subject: Re: Maven Artifact JDK Suffix
Next
From: Matthieu SANCHEZ
Date:
Subject: Re: Connection to PgSQL does not use SSL with JDBC driver 9.4 if the parameter is passed through Properties rather than URL