From 9142e54e7351c744e92b261f9d77c2d3b85c2653 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 3 Jun 1998 18:56:09 +0000 Subject: [PATCH] From: Peter T Mount Bug fixes: PreparedStatement.setObject didn't handle short's ResultSet.getDate() now handles null dates (returns null rather than a NullPointerException) ResultSetMetaData.getPrecision() now returns 0 for VARCHAR New features: Field now caches the typename->oid in a Hashtable to speed things up. It removes the need for some unnecessary queries to the backend. PreparedStatement.toString() now returns the sql statement that it will send to the backend. Before it did nothing. DatabaseMetaData.getTypeInfo() now does something. --- src/interfaces/jdbc/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/interfaces/jdbc/Makefile b/src/interfaces/jdbc/Makefile index 4ebb6c2c48b..90c86c2fb37 100644 --- a/src/interfaces/jdbc/Makefile +++ b/src/interfaces/jdbc/Makefile @@ -4,7 +4,7 @@ # Makefile for Java JDBC interface # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.7 1998/04/06 00:30:36 momjian Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.8 1998/06/03 18:56:09 scrappy Exp $ # #------------------------------------------------------------------------- @@ -78,6 +78,7 @@ OBJS= postgresql/CallableStatement.class \ postgresql/largeobject/LargeObjectManager.class \ postgresql/util/PGobject.class \ postgresql/util/PGtokenizer.class \ + postgresql/util/Serialize.class \ postgresql/util/UnixCrypt.class # If you have problems with the first line, try the second one. @@ -123,6 +124,7 @@ postgresql/largeobject/LargeObject.class: postgresql/largeobject/LargeObject.jav postgresql/largeobject/LargeObjectManager.class: postgresql/largeobject/LargeObjectManager.java postgresql/util/PGobject.class: postgresql/util/PGobject.java postgresql/util/PGtokenizer.class: postgresql/util/PGtokenizer.java +postgresql/util/Serialize.class: postgresql/util/Serialize.java postgresql/util/UnixCrypt.class: postgresql/util/UnixCrypt.java ####################################################################### @@ -131,7 +133,8 @@ EX= example/basic.class \ example/blobtest.class \ example/datestyle.class \ example/psql.class \ - example/ImageViewer.class + example/ImageViewer.class \ + example/Objects.class # This rule builds the examples examples: postgresql.jar $(EX) @@ -151,6 +154,7 @@ examples: postgresql.jar $(EX) @echo " example.datestyle Shows how datestyles are handled" @echo " example.ImageViewer Example application storing images" @echo " example.psql Simple java implementation of psql" + @echo " example.Objects Demonstrates Object Serialisation" @echo ------------------------------------------------------------ @echo @@ -159,4 +163,5 @@ example/blobtest.class: example/blobtest.java example/datestyle.class: example/datestyle.java example/psql.class: example/psql.java example/ImageViewer.class: example/ImageViewer.java +example/Objects.class: example/Objects.java #######################################################################