Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFTg9-0004gp-N7 for pgsql-jdbc@arkaria.postgresql.org; Tue, 12 Mar 2013 18:12:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UFTg9-0005qZ-7l for pgsql-jdbc@arkaria.postgresql.org; Tue, 12 Mar 2013 18:12:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFTg8-0005qU-NO for pgsql-jdbc@postgresql.org; Tue, 12 Mar 2013 18:12:00 +0000 Received: from auth-smtp.nebula.fi ([217.30.180.105]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFTg4-0006FZ-GW for pgsql-jdbc@postgresql.org; Tue, 12 Mar 2013 18:12:00 +0000 Received: from quadvadis.localdomain (cs172004.pp.htv.fi [213.243.172.4]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id r2CIBt3j004167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Mar 2013 20:11:55 +0200 Message-ID: <513F6FEB.9020801@nitorcreations.com> Date: Tue, 12 Mar 2013 20:11:55 +0200 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: A new JDBC driver... References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by auth-smtp.nebula.fi id r2CIBt3j004167 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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 instea= d 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 (o= r similar). For cases where that is not possible, such as SQL editors we should generat= e also provide a fat jdbc jar that has all the required dependencies embedd= ed. -Mikko > Dave Cramer > > dave.cramer(at)credativ(dot)ca > http://www.credativ.ca > > > On Tue, Mar 12, 2013 at 1:39 PM, Thomas Kellerer > wrote: > > Kevin Wooten wrote on 12.03.2013 02:19: > > So=85 I did a crazy thing=85 I created an entirely new JDBC drive= r. > > (For those who care there's an actual question at the bottom=85 t= his > 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 dr= iver 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 followin= g exception when connecting: > > > java.lang.NullPointerException > at com.impossibl.postgres.__protocol.v30.ProtocolImpl.__sendStartu= p(ProtocolImpl.java:__168) > at com.impossibl.postgres.__protocol.v30.__StartupCommandImpl.exec= ute(__StartupCommandImpl.java:107) > at com.impossibl.postgres.__protocol.v30.ProtocolImpl.__execute(Pr= otocolImpl.java:139) > at com.impossibl.postgres.system.__BasicContext.start(__BasicConte= xt.java:151) > at com.impossibl.postgres.system.__BasicContext.init(__BasicContex= t.java:110) > at com.impossibl.postgres.jdbc.__PSQLDriver.connect(PSQLDriver.__j= ava:56) > at com.impossibl.postgres.jdbc.__PSQLDriver.connect(PSQLDriver.__j= ava:22) > > Regards > Thomas > > > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org ) > To make changes to your subscription: > http://www.postgresql.org/__mailpref/pgsql-jdbc > > --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc