summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/example
AgeCommit message (Collapse)Author
2004-01-19JDBC is now on GBorgPostgreSQL Daemon
2003-11-29make sure the $Id tags are converted to $PostgreSQL as well ...PostgreSQL Daemon
2003-09-09Clean up some unused import warnings in the example jdbc codeBarry Lind
2002-09-06Run pgjindent for Java folks.Bruce Momjian
2002-09-03Remove all traces of multibyte and locale options. Clean up commentsPeter Eisentraut
referring to "multibyte" where it really means character encoding.
2002-07-23Initial restructuring to add jdbc3 support. There was a significant amountBarry Lind
of duplicated code between the jdbc1 and jdbc2. This checkin restructures the code so that the duplication is removed so that the jdbc3 support can be added without adding yet another copy of everything. Also many classes were renamed to avoid confusion with multiple different objects having the same name. The timestamp tests were also updated to add support for testing timestamp without time zone in addition to timestamp with time zone Modified Files: jdbc/Makefile jdbc/build.xml jdbc/example/ImageViewer.java jdbc/example/basic.java jdbc/example/blobtest.java jdbc/example/threadsafe.java jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/Field.java jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/fastpath/Fastpath.java jdbc/org/postgresql/jdbc1/CallableStatement.java jdbc/org/postgresql/jdbc1/DatabaseMetaData.java jdbc/org/postgresql/jdbc1/PreparedStatement.java jdbc/org/postgresql/jdbc2/Array.java jdbc/org/postgresql/jdbc2/CallableStatement.java jdbc/org/postgresql/jdbc2/DatabaseMetaData.java jdbc/org/postgresql/jdbc2/PreparedStatement.java jdbc/org/postgresql/jdbc2/UpdateableResultSet.java jdbc/org/postgresql/largeobject/LargeObjectManager.java jdbc/org/postgresql/largeobject/PGblob.java jdbc/org/postgresql/largeobject/PGclob.java jdbc/org/postgresql/test/jdbc2/BlobTest.java jdbc/org/postgresql/test/jdbc2/ConnectionTest.java jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java jdbc/org/postgresql/test/jdbc2/TimestampTest.java jdbc/org/postgresql/test/jdbc2/UpdateableResultTest.java jdbc/org/postgresql/util/Serialize.java Added Files: jdbc/org/postgresql/PGConnection.java jdbc/org/postgresql/PGStatement.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc1/Jdbc1Connection.java jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java jdbc/org/postgresql/jdbc1/Jdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java jdbc/org/postgresql/jdbc2/Jdbc2Connection.java jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java jdbc/org/postgresql/jdbc2/Jdbc2Statement.java Removed Files: jdbc/org/postgresql/Connection.java jdbc/org/postgresql/ResultSet.java jdbc/org/postgresql/Statement.java jdbc/org/postgresql/jdbc1/Connection.java jdbc/org/postgresql/jdbc1/ResultSet.java jdbc/org/postgresql/jdbc1/Statement.java jdbc/org/postgresql/jdbc2/Connection.java jdbc/org/postgresql/jdbc2/ResultSet.java jdbc/org/postgresql/jdbc2/Statement.java
2001-11-25This patch fixes a bug reported by Graham Leggett ([email protected]).Barry Lind
The bug was that any insert or update would fail if the returned oid was larger than a signed int. Since OIDs are unsigned int's it was a bug that the code used a java signed int to deal with the values. The bug would result in the error message: "Unable to fathom update count". While fixing the bug, it became apparent that other code made a similar assumption about OIDs being signed ints. Therefore some methods that returned or took OIDs are arguements also needed to be changed. Since we are so close to the 7.2 release I have added new methods that return longs and deprecated the old methods returning ints. Therefore all old code should still work without requiring a code change to cast from long to int. Also note that the methods below are PostgreSQL specific extensions to the JDBC api are are not part of the spec from Sun, thus it is unlikely that they are used much or at all. The deprecated methods are: ResultSet.getInsertedOID() Statement.getInsertedOID() Serialize.store() Connection.putObject() and are replaced by: ResultSet.getLastOID() Statement.getLastOID() Serialize.storeObject() Connection.storeObject() All the deprecated methods returned int, while their replacements return long This patch also fixes two comments in MD5Digest that the author Jeremy Wohl submitted. --Barry
2001-11-19Change 'return ;' to 'return;'; remove space.Bruce Momjian
2001-11-19Indent jdbc case labels using pgjindent.Bruce Momjian
2001-11-19More jdbc comment cleanups. Code looks very nice now.Bruce Momjian
2001-10-25pgjindent jdbc files. First time jdbc files were formatted.Bruce Momjian
2001-01-31Wed Jan 31 08:46:00 GMT 2001 [email protected]Peter Mount
- Some minor additions to Statement to make our own extensions more portable. - Statement.close() will now call ResultSet.close() rather than just dissasociating with it.
2001-01-31Tue Jan 30 22:24:00 GMT 2001 [email protected]Peter Mount
- Fixed bug where Statement.setMaxRows() was a global setting. Now limited to just itself. - Changed LargeObject.read(byte[],int,int) to return the actual number of bytes read (used to be void). - LargeObject now supports InputStream's! - PreparedStatement.setBinaryStream() now works! - ResultSet.getBinaryStream() now returns an InputStream that doesn't copy the blob into memory first! - Connection.isClosed() now tests to see if the connection is still alive rather than if it thinks it's alive.
2000-10-12Major update part I involving delayed patches, reworked Makefile, and howPeter Mount
the versioning works. There's also a new utils directory used by Makefile
2000-09-12Attached are a patch to allow the charset encoding used by the JDBCBruce Momjian
driver to be set, and a description of said patch. Please refer to the latter for more information. William -- William Webber [email protected]
2000-06-06Added org/postgresql/DriverClass.java to the list of files removed by make ↵Peter Mount
clean (it's dynamically built) Fixed Statement, so that the update count is valid when an SQL DELETE operation is done. While fixing the update count, made it easier to get the OID of the last insert as well. Example is in example/basic.java
2000-05-05ImageViewer transaction fixesPeter Mount
2000-05-03Minor fixes ready for 7.0Peter Mount
2000-04-26Another attemptPeter Mount
1999-05-18Transactions in ImageViewerPeter Mount
1999-05-17Fixed Internationalization of error messages.Peter Mount
1999-04-11Implement UpdateCountPeter Mount
1999-01-25From: Peter T Mount <[email protected]>Marc G. Fournier
This implements some of the JDBC2 methods, fixes a bug introduced into the JDBC1 portion of the driver, and introduces a new example, showing how to use the CORBA ORB thats in Java2 with JDBC. The Tar file contains the new files, the diff the changes to the others. CHANGELOG is separate as I forgot to make a .orig ;-)
1998-10-12This patch updates the ImageViewer example to use Multiple Threading.Bruce Momjian
When importing an image into the database, the example now fires off a new Thread, which imports the image in the background. This also means that the application doesn't freeze on the user, and they can still browse the images in the database, while the upload is running. This now makes the ImageViewer a true example on how to use Threads (the threadtest class is just that - a test). Peter
1998-10-08Just a quick patch. This makes the JDBC driver thread safe, which is anBruce Momjian
important step towards making the driver compliant, and means that for some Java applications and servlets, only a single database connection is needed, so in a sence this is a nice little show stopper for 6.4 (and should still be backward compatible to 6.3.2). Peter
1998-09-03New stuff from Peter Mount for jdbc.Bruce Momjian
1998-09-03New stuff for 6.4 jdbc.Bruce Momjian
Peter mount
1998-01-13Oops...missed over half the patch :(Marc G. Fournier