X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B42983A1919 for ; Tue, 18 Jan 2005 10:51:43 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 88602-04 for ; Tue, 18 Jan 2005 10:51:27 +0000 (GMT) Received: from krogh.officenet.no (unknown [128.39.244.194]) by svr1.postgresql.org (Postfix) with ESMTP id BF42C3A1A40 for ; Tue, 18 Jan 2005 10:51:28 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by krogh.officenet.no (Postfix) with ESMTP id 6D2212BBBD; Tue, 18 Jan 2005 11:51:28 +0100 (CET) From: Andreas Joseph Krogh Organization: OfficeNet AS To: Kris Jurka Subject: Re: 8.0 drivers released. Date: Tue, 18 Jan 2005 11:51:21 +0100 User-Agent: KMail/1.7.91 Cc: pgsql-jdbc@postgresql.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5272109.Kx1Ggjtvu4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200501181151.27951.andreak@officenet.no> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/174 X-Sequence-Number: 12054 --nextPart5272109.Kx1Ggjtvu4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 17 January 2005 13:48, Kris Jurka wrote: > With the 8.0 server release coming later this week, I've put up a new set > of JDBC drivers. I haven't had time to write up a full set of release > notes, so this email will have to suffice for now... > > Naturally there are a huge number of minor improvements and fixes, > but these are the big things in 8.0: > > - True V3 protocol support. > - Savepoints. > - No more "idle in transaction" problems. > - Binary data doesn't use fifty times the necessary memory. > - SSL connection customization > - driver configuration via properties file > - 5.0 JDK compiles > > Major compatibility issues that come to mind immediately. > > The driver now always uses some form of server prepared statement. This > means that all data is now strongly typed instead of mashed together into > a query string for the server to figure out. If you have an application > that uses setString(x, myString) for every type, you are not going to be > happy. The driver needs to know what the real column type is in the > database and it infers this from the setXXX call you make. This presents > some tricky problems when dealing with postgresql datatypes that do not > match up exactly with Java datatypes that are only solved by using a > custom PGobject subclass to pass both the data and the correct type to the > driver. This also extends to null values, no longer is setObject(x, null) > valid because it does not contain type information for the driver to use. > > Previously Statement.executeQuery("INSERT ... ; SELECT currval('myseq')"); > would return a ResultSet. This is no longer true and I don't believe it > was ever strictly legal. This should be correctly written in separate > queries or: > > Statement.execute("INSERT ...; SELECT currval('myseq')"); > Statement.getMoreResults(); > ResultSet rs =3D Statement.getResultSet(); > > Calling PreparedStatement.setBinaryStream now requires a correct length > argument. Previously Integer.MAX_VALUE or similar could be used and it > would read the stream to completion, but with the ability to stream data > directly to the server and not use up outrageous amounts of memory means > that we need to know the correct length from the outset. > > Kris Jurka Hi! I tried using postgresql-8.0.309.jdbc2.jar (and jdbc3) and got the followin= g=20 NullPointerException: Caused by: java.lang.NullPointerException at org.postgresql.Driver.getDefaultProperties(Driver.java:84) at org.postgresql.Driver.connect(Driver.java:167) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:599) Any explaination? =2D-=20 Andreas Joseph Krogh Senior Software Developer / Manager gpg public_key: http://dev.officenet.no/~andreak/public_key.asc =2D-----------------------+---------------------------------------------+ OfficeNet AS | Can i wash my clothes with my dvd drive? | Hoffsveien 17 | Or do i need to replace it with a washing | PO. Box 425 Sk=F8yen | machine?? | 0213 Oslo | | NORWAY | | Phone : +47 22 13 01 00 | | Direct: +47 22 13 10 03 | | Mobile: +47 909 56 963 | | =2D-----------------------+---------------------------------------------+ --nextPart5272109.Kx1Ggjtvu4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBB7OovUopImDh2gfQRAq0qAJ43Y52zDgf964rssVh9hlUIh0ulpACeKyiX HCmlRjxn1V0KV3BC3RH/Pcg= =Hlat -----END PGP SIGNATURE----- --nextPart5272109.Kx1Ggjtvu4--