Re: A new JDBC driver...

From: Mikko Tiihonen <mikko(dot)tiihonen(at)nitorcreations(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: A new JDBC driver...
Date: 2013-03-12 18:11:55
Message-ID: 513F6FEB.9020801@nitorcreations.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 03/12/2013 08:04 PM, Dave Cramer wrote:
> Ya, It occurred to me as well if you are using netty it requires another jar.
>
> A bit unorthodox...

I think using 3rd party dependencies is the proper way to go forward instead of reimplementing all required functionalities in every JDBC driver.
That is not to say that the required dependencies should be kept to minimum.

Normal java applications should use pgjdbc-ng through maven dependencies (or similar).
For cases where that is not possible, such as SQL editors we should generate also provide a fat jdbc jar that has all the required dependencies embedded.

-Mikko

> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
>
> On Tue, Mar 12, 2013 at 1:39 PM, Thomas Kellerer <spam_eater(at)gmx(dot)net <mailto:spam_eater(at)gmx(dot)net>> wrote:
>
> Kevin Wooten wrote on 12.03.2013 02:19:
>
> So… I did a crazy thing… I created an entirely new JDBC driver.
>
> (For those who care there's an actual question at the bottom… this
> isn't just bragging)
>
> I'd love it if some folks in the know could take a look at my code
> and see if it stirs up any ideas on integration or just makes you
> want to jump off a bridge.
>
>
> It does sound very nice, thanks very much for the effort!
>
> I didn't look at the code, but one thing I noticed when trying the driver is that it requires a bunch of other libraries which is highly unusual in the JDBC
> "world". Usually the JDBC driver jar is self contained.
>
> When I tried it with my SQL tool (SQL Workbench/J) I got the following exception when connecting:
>
>
> java.lang.NullPointerException
> at com.impossibl.postgres.__protocol.v30.ProtocolImpl.__sendStartup(ProtocolImpl.java:__168)
> at com.impossibl.postgres.__protocol.v30.__StartupCommandImpl.execute(__StartupCommandImpl.java:107)
> at com.impossibl.postgres.__protocol.v30.ProtocolImpl.__execute(ProtocolImpl.java:139)
> at com.impossibl.postgres.system.__BasicContext.start(__BasicContext.java:151)
> at com.impossibl.postgres.system.__BasicContext.init(__BasicContext.java:110)
> at com.impossibl.postgres.jdbc.__PSQLDriver.connect(PSQLDriver.__java:56)
> at com.impossibl.postgres.jdbc.__PSQLDriver.connect(PSQLDriver.__java:22)
>
> Regards
> Thomas
>
>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org <mailto:pgsql-jdbc(at)postgresql(dot)org>)
> To make changes to your subscription:
> http://www.postgresql.org/__mailpref/pgsql-jdbc <http://www.postgresql.org/mailpref/pgsql-jdbc>
>
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kevin Wooten 2013-03-12 18:22:38 Re: A new JDBC driver...
Previous Message Steven Schlansker 2013-03-12 18:10:50 Re: A new JDBC driver...