summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc
AgeCommit message (Collapse)Author
2006-05-21Change \' to '', for SQL standards compliance. Backpatch to 7.3, 7.4,Bruce Momjian
and 8.0. Later releases already patched.
2005-05-08In Blob.getBytes(long position, int length) position is an offsetKris Jurka
starting at 1, not zero as the driver was previously doing. Thanks to Emmanuel Bernard for the report.
2005-04-22Release build 216.Kris Jurka
2005-04-22Updatable ResultSets need to check for an empty ResultSet becauseKris Jurka
isBeforeFirst and isAfterLast both return false for an empty result so the checking to make sure the user is on a valid row wasn't working. Also don't allow an insert without specifying at least one column value because INSERT INTO tab() values() is a syntax error.
2005-04-22When moveToCurrentRow is called and the current row is off theKris Jurka
end of the ResultSet we can't try to load that row because it doesn't exist and will throw an Exception. Reported by Prasanth.
2005-04-18When positioned before the start of a ResultSet issuing relative(0)Kris Jurka
results in an exception being thrown when it really should be a no-op.
2005-01-13Fix mapping infinite timestamp values to arbitrary dates.Kris Jurka
Report from Oliver Siegmar.
2004-10-21Correctly cast the return value of a CallableStatement when getShortKris Jurka
is called. getByte presents a can't happen situation as no function can return a TINYINT because pg doesn't have an equivalent type. Make this throw an exception if we get to this point. Thanks to Christian Niles.
2004-09-13Protected access to variable m_preparedCount via synchronizedKris Jurka
function to prevent multiple threads using automatic cursors on the same connection from stomping over each others cursor. Originally Jan Wieck, re-reported by Jack Orenstein after accidental removal.
2004-09-13ResultSet.moveToCurrentRow was checking the cached updateability flagKris Jurka
assuming it had been set instead of correctly calling the isUpdateable() method which sets the flag if needed. This usually worked because moveToCurrentRow is only useful after a moveToInsertRow call which would set the flag, but this is not required. David Bucciarelli
2004-08-13New build for the 7.4.4 release.Kris Jurka
2004-08-11Decode V3 notice messages instead of leaving them in raw form.Kris Jurka
From Donald Fraser.
2004-08-11DatabaseMetaData.getSearchString escape was a \ short of workingKris Jurka
because both Java's String constructor and pg's input parser strip off backslashes.
2004-07-15When retrieving an array of numerics it attempted to set the scale onKris Jurka
the retrieved data to zero, which doesn't work for non-integer values. Oliver Dauben
2004-06-24Fix apparently harmless typo. {$srcdir} -> ${srcdir}Kris Jurka
Markus Schaber
2004-06-22Close the existing socket connection when reverting to the V2Kris Jurka
protocol, or encountering other connection failures. Laurent Sylvain
2004-06-21Fix some problems with result sets positioned before the start orKris Jurka
after the end of results. You could still call a number of methods on them like getXXX, updateXXX, and updateRow().
2004-06-21Fix updatable ResultSets stream methods (ascii, character, binary).Kris Jurka
The existing code didn't correctly allocate data arrays, and it failed to loop when a stream didn't provide the full amount of data requested of it. Reported by Jan de Visser.
2004-06-18Foreign key information results should have column name FKTABLE_CATKris Jurka
instead of FK_TABLE_CAT. From jeff@bonevich.com.
2004-06-16Don't throw an Exception in locatorsUpdateCopy() even though theKris Jurka
ability to update LOBs is unimplemented. The 1.5 JDK's CachedRowSet implementation calls this method regardless of whether large objects are used or not.
2004-06-16Bump the build number to relase a new version.Kris Jurka
2004-06-16When deleteRow() is called on an updateable ResultSet the ResultSetKris Jurka
should be positioned on the previous row. Reported by Bob Messenger and Chris Pesarchick.
2004-06-16Fix DatabaseMetaData results for determining foreign keyKris Jurka
relationships. Resulting columns from getImportedExportedKeys should be FKTABLE_SCHEM and PKTABLE_SCHEM, not _SCHEMA. Per report from jeff@bonevich.com.
2004-05-17Fix setting timestamp values with very early year values, like 2, byKris Jurka
formatting all years with four digits. Previously 0002-10-30 was being sent as 2-10-30 which got turned into 2030-02-10. Per report from oneway_111.
2004-05-07Allow public access to radius field to match other geometric typesKris Jurka
behavior. Per report from Declan Lynch.
2004-04-26Update the build.xml file to support building with the new 1.5 jdkKris Jurka
and ant 1.6.
2004-04-24Allow updateable ResultSets to support types that aren't directlyKris Jurka
mappable to Java types, for example cidr. Per report from Moray Taylor.
2004-03-29Fix for bug with the jdbc driver not properly working with binary cursors andBarry Lind
the V3 protocol. Modified Files: Tag: REL7_4_STABLE jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/core/BaseResultSet.java jdbc/org/postgresql/core/BaseStatement.java jdbc/org/postgresql/core/Field.java jdbc/org/postgresql/core/PGStream.java jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java jdbc/org/postgresql/jdbc1/Jdbc1PreparedStatement.java jdbc/org/postgresql/jdbc1/Jdbc1RefCursorResultSet.java jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java jdbc/org/postgresql/jdbc1/Jdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/Array.java jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java jdbc/org/postgresql/jdbc2/Jdbc2RefCursorResultSet.java jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java jdbc/org/postgresql/jdbc2/Jdbc2Statement.java jdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java jdbc/org/postgresql/jdbc3/Jdbc3RefCursorResultSet.java jdbc/org/postgresql/jdbc3/Jdbc3ResultSet.java jdbc/org/postgresql/jdbc3/Jdbc3Statement.java jdbc/org/postgresql/test/jdbc2/Jdbc2TestSuite.java jdbc/org/postgresql/test/jdbc2/OID74Test.java Added Files: Tag: REL7_4_STABLE jdbc/org/postgresql/test/jdbc2/ServerCursorTest.java
2004-03-04Update build number in anticipation of 7.4.2 release. With noKris Jurka
currently outstanding issues we'll flag now, so the release doesn't slip out the door without it.
2004-02-24Closing a Connection or Statement object twice should be a no-opKris Jurka
instead of throwing an Exception. Per report from Victor Sergienko.
2004-02-10Don't try to turn the random bytes from a md5 salt into a StringKris Jurka
because it may not be a valid String depending on the encoding. Per report from Nadeem Bitar.
2004-02-03V3 NotificationResonse messages were trying to be received as V2Kris Jurka
messages. Also the PID was being read in the wrong byte order. Finally add a test case for listen/notify. Per report from Hans Nather.
2004-02-03ConnectionPool and SimpleDataSource are marked Serializable, but theirKris Jurka
superclass (which contains a number of state variables) is not. To correctly serialize these objects we need to manually implement writeObject and readObject. Per report from R. Lemos
2004-02-03ResultSet.next() and previous() incremented or decremented theKris Jurka
internal current_row variable regardless of wether they succeeded or not. This generated some ArrayIndexOutOfBoundsExceptions when the errorneous adjustment current_row led to out of range values. Per report from Fischer Krisztian.
2004-02-03Fix the setXXXStream methods. If passed a null InputStream, convertKris Jurka
this to a setNull call. The code originally would try to read the whole stream in one call to read(), but this doesn't work. The InputStream API makes it clear you must be prepared to loop and continue reading if you didn't get the whole request on the first try. Per report from Martin Holz.
2004-02-03Newer versions of the 1.4.2 jdk give warnings about having return in aKris Jurka
finally clause.
2004-01-07Translation updatesPeter Eisentraut
2004-01-05Translation updatesPeter Eisentraut
2003-12-18patch for new OID74TestDave Cramer
2003-12-18backpatch for OID74Test to conform with jdbc testsDave Cramer
2003-12-18backpatch for rs.previous from Kris Jurka, reported by Andrew FyfeDave Cramer
2003-12-18patch for building for an alternate portDave Cramer
2003-12-18back patch by Kris Jurka to get the correct protocol version from the serverDave Cramer
2003-12-17back patching fix for compat 7.1 binary stream issues with the new protocolDave Cramer
added test for same
2003-12-13patch for returning database metadata as system objects from Kris JurkaDave Cramer
2003-12-12add missing SQLState by Patrick HigginsDave Cramer
2003-12-12cancel row updates sets values to null by Kris JurkaDave Cramer
2003-12-12patch to indicate why test cases failed from Oliver JowettDave Cramer
2003-12-12fix casting pooled connections to PGStatement problem patch by JariPDave Cramer
2003-12-12patch to build under jdk1.1 from Richard ScrantonDave Cramer