summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc
AgeCommit message (Collapse)Author
2002-03-26Changed QueryExecutor.java to correctly read responses from the backend.Barry Lind
Fixed NPE when database name was not passed on the jdbc connection URL Fixed Connection.isClosed() to not hit the DB for every call
2002-03-21Two versions of QueryExecutor, currently only version 2 works 100%Dave Cramer
these versions adhere to the backend protocol better than previous version fixes problem when an error occurs on the backend, and the connection is still used previous versions were throwing an exception half way through the protocol, leaving it indeterminate. also removes empty query code, should speed things up a bit
2002-03-21modifications to the way the protocol is handled to be consistent withDave Cramer
QueryExecutor. This includes: 1) only exit after we receive a 'Z' packet 2) append error messages to a buffer and throw the exception at the end
2002-03-21Part of Anders Bengtsson's patch to clean up Connection.javaDave Cramer
2002-03-21Applied Anders patch to move the startup code out of Connection into ↵Dave Cramer
StartupPacket * Introduces a new class, StartupPacket. * Moves a lot of constants from Connection to StartupPacket. * Makes two instance variables in Connection into locals.
2002-03-19>Added ServerEncodingBruce Momjian
> Korean (JOHAB), Thai (WIN874), > Vietnamese (TCVN), Arabic (WIN1256) > >Added ClientEncoding > Simplified Chinese (GBK), Korean (UHC) > >Add PsqlODBC and document ...etc patch. "JDBC patch" is delivered, too. :-) Eiji Tokuya
2002-03-19applied patch from Liam StewartDave Cramer
If one is trying to compile a JDBC 1 driver and junit.jar is in the CLASSPATH, then the build fails as ant tries to build the JDBC 2 test classes. This patch fixes this problem by excluding the jdbc 2 files unless the jdk1.2+ property is set.
2002-03-18Fixes bug where query hangs if there is an error in the query, went back toDave Cramer
code before QueryExecutor class was created and copied behaviour
2002-03-16fixed QueryExecuter to deal with multiple errorsDave Cramer
previously it was throwing a SQLException as soon as the error message was received from the backend. This did not allow the protocol to finish properly now, simply collects error messages from the backend until the query is done and throws exception at the end Also added setLogLevel to Driver.java, and made the log levels public
2002-03-15patch from Alexey SlynkoDave Cramer
This patch solve problems with arrays in latest development JDBC driver
2002-03-09Added a check for not calling next() before getting objects from the result set,Dave Cramer
moved the check for columnIndex into same call check at the top of all getXXX added appropriate error
2002-03-09Here is a small patch that cleans up some error reporting in the JDBC ↵Dave Cramer
driver. PSQLExceptions are thrown instead of SQLExceptions and if a warning is received while waiting for the backend secret key, that warning is chained to the new Connection object instead of generating an exception. A couple new error messages have been added.
2002-03-06 changed Cancel to cancelDave Cramer
2002-03-05backed out changes for cancel, no need to look for two 'Z' responsesDave Cramer
2002-03-05Patch by Nicolas Verger to correctly propogate SQLWarning to the Statement ↵Dave Cramer
and ResultSet
2002-03-05fixed cancel query bug introduced by patchDave Cramer
2002-03-05At this moment, --enable-debug adds debugging information to most of theBruce Momjian
parts o f postgresql. The jdbc drivers are never compiled with debugging support. This p atch make sure that debugging information is added to the jdbc jar when the --en able-debug is added. This was usefull for me for debugging some java jdbc poolin g objects but this might perhaps be usefull for other people too? Dries Verachtert
2002-03-05Doug Fields patch to prevent exception being thrown on zero length arraysDave Cramer
2002-03-05patch from Zhenbang WeiDave Cramer
The errors_zh_TW.properties must be translated using native2ascii or it will raise an exception. Please replace the old file.
2002-03-05Patch from Ryouichi MatsudaDave Cramer
An attached patch corrects problem of this bug and fractional second. The handling of time zone was as follows: (a) with time zone using SimpleDateFormat("yyyy-MM-dd HH:mm:ss z") (b) without time zone using SimpleDateFormat("yyyy-MM-dd HH:mm:ss") About problem of fractional second, Fractional second was changed from milli-second to nano-second
2002-03-05 patch from Mitchel Friedman to fix getTablesDave Cramer
2002-03-05 patch from Vicktor to fix Numeric decimal digits in getColumnsDave Cramer
2002-02-26Implementation for cancelQuery by Grant Finnemore <grantf@guruhut.co.za>Dave Cramer
2002-02-24compiles correctly but still doesn't work with jdk 1.4Dave Cramer
2002-02-22fixed compile errorDave Cramer
2002-02-22This patch fixes the exception thrown to inform the user the methodDave Cramer
getColumnClassName(int) is not implemented. This will futher fixes method ResultSet.getObject(int) since it requires the getColumnClassName(int) method to return the proper java class used to map the database column. auther Ed Yu
2002-02-22Patch from Cormac TwomeyDave Cramer
fixes getIndexInfo throwing NullPointerException fixes getIndexInfo improper results when multiple key indexs are used
2002-02-22Patch from Cormac TwomeyDave Cramer
fixes getIndexInfo throwing NullPointerException fixes getIndexInfo improper results when multiple key indexs are used
2002-02-22now compiles clean with jdk 1.4Dave Cramer
2002-01-18Fixes to getImportedKeys/getExportedKeys from Jason DaviesDave Cramer
Previous versions did not correctly identify primary/foreign keys
2002-01-15Applied patch submitted by Ryouichi Matsuda (r-matuda@sra.co.jp) that fixed ↵Barry Lind
a problem with leading zeros being lost on fractional seconds when setting a timestamp value on a PreparedStatement.
2002-01-15Applied patch from Ryouichi Matsuda <r-matuda@sra.co.jp> where the jdbcBarry Lind
driver was not properly handling timestamptz datatype when using the getObject() method on ResultSet. Fix adds this datatype to the object mappings.
2002-01-05Bugfix for bug reported by Marcus Better (marcus@dactylis.com). When preformingBarry Lind
a get on a bytea value the code was running the raw value from the server through character set conversion, which if the character set was SQL_ASCII would cause all 8bit characters to become ?'s.
2001-12-11Applied patch from Thomas O'Dowd that fixes timestamp parsing. The jdbc codeBarry Lind
wasn't updated to handle more than two decimal digits for fractional seconds that now are possible in 7.2. This patch fixes the timestamp parsing logic. I have built and tested on both jdbc1 and jdbc2.
2001-12-11Patch from Ned Wolpert that fixes a bug that caused the cache of types notBarry Lind
to be used, causing extra sql statements to be executed. This was a significant performance problem with the database meta data classes. The fix is a simple one liner.
2001-11-25This patch fixes a bug reported by Graham Leggett (minfrin@sharp.fm).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-11-19JDBC indenting, comment cleanups.Bruce Momjian
2001-11-14fixes getIndex to work with forte's transparent persistenceDave Cramer
2001-11-14Attached is a patch against the CVS repository that fixes the ResultSet ↵Barry Lind
absolute() problem. There's also a little fix for the getRow() method. While fixing absolute(), I noticed that getRow() wasn't quite following the spec: it wasn't returning 0 when the ResultSet wasn't positioned on a row. I've started a ResultSet test case and included it as well. Liam Stewart
2001-11-12fixed bug in ResultSet. Version 1.29 backed out two previous fixes (1.26 ↵Barry Lind
and 1.25). This checkin add back those two previous fixes. Problem reported by Daniel Germain
2001-11-12Commit to support MD5 passwords as per the backend for 7.2. This patch was ↵Barry Lind
submitted by Jeremy Wohl jeremyw-pgjdbc@igmus.org
2001-11-09Jason Davies patch to getImported/getExported keysDave Cramer
2001-11-02proper select for Jason Davies patch to getImportedKeysDave Cramer
2001-11-02proper select for Jason Davies patch to getImportedKeysDave Cramer
fixes for compiling Jason's getImportedKeys, getExportedKeys
2001-11-01minor improvements on Dave's last checkinBarry Lind
2001-10-31changes to support 3rd party ERD tools and starofficeDave Cramer
2001-10-31allow null passwordsDave Cramer