aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc
Commit message (Collapse)AuthorAge
...
* binary stream patch by Kris Jurka fixes empty stream failureDave Cramer2003-12-12
|
* metadata encoding patch from Kris JurkaDave Cramer2003-12-12
|
* patch for unique foreign keys and test case from Kris JurkaDave Cramer2003-12-11
|
* patch to make PSQLState serializable, and a test case for itDave Cramer2003-12-11
| | | | added a test case for getLastOID
* incremented the build number to 210Dave Cramer2003-12-10
|
* backpatch for driver threadsafe problemsDave Cramer2003-12-05
|
* patch from Kris Jurka to allow the server end port to be specified when runningDave Cramer2003-12-05
| | | | regression tests, this is a backpatch to 7.4
* Translation updatesPeter Eisentraut2003-11-15
|
* use the result set to set the fetchsizeDave Cramer2003-10-30
|
* Patches from Oliver Jowett to fix CursorFetchTest, 7.4 now does not ↵Dave Cramer2003-10-29
| | | | automatically delete cursors
* New translationPeter Eisentraut2003-10-15
|
* Protected access to variable m_preparedCount via synchronizedJan Wieck2003-10-09
| | | | | | | function to prevent multiple threads using automatic cursors on the same connection from stomping over each others cursor. Jan
* Fix to properly handle timezone offsets that are partial hours. If the offsetBarry Lind2003-09-23
| | | | | | | | was a partial hour and less than gmt (i.e. -02:30) the code would corrupt the minutes part. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
* A fix for jdbc regression test submitted yesterday by Kim Ho at RedhatBarry Lind2003-09-23
| | | | | Modified Files: ResultSetTest.java
* Additional jdbc regression tests submitted by Oliver Jowett. Some tests areBarry Lind2003-09-22
| | | | | | | | | | currently commented out, pending fixes for the bugs these tests uncovered. Modified Files: jdbc/org/postgresql/test/jdbc2/Jdbc2TestSuite.java jdbc/org/postgresql/test/jdbc2/ServerPreparedStmtTest.java Added Files: jdbc/org/postgresql/test/jdbc2/CursorFetchTest.java
* Applied jdbc patch from Kim Ho at RedHat to improve boolean support, as wellBarry Lind2003-09-22
| | | | | | | | | | | as some additional regression tests for this an other recent changes. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/test/jdbc2/DateTest.java jdbc/org/postgresql/test/jdbc2/ResultSetTest.java jdbc/org/postgresql/test/jdbc2/TimeTest.java jdbc/org/postgresql/test/jdbc2/TimestampTest.java
* Applied patch from Oliver Jowett to clean up some instances where the wrongBarry Lind2003-09-18
| | | | | | | | type was being reported for PREPAREs. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/test/jdbc2/ServerPreparedStmtTest.java
* Small jdbc patch from Kim Ho at RedHat to fix some boolean problemsBarry Lind2003-09-18
| | | | | Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
* A minor fix to jdbc regression testsBarry Lind2003-09-18
| | | | | Modified Files: jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataPropertiesTest.java
* Applied patch to jdbc from Kim Ho at RedHat, fixing improper handling of ↵Barry Lind2003-09-17
| | | | | | | empty queries under the V3 protocol Modified Files: jdbc/org/postgresql/core/QueryExecutor.java
* Applied patch for jdbc from Kim Ho at RedHat to more correctly deal with ↵Barry Lind2003-09-17
| | | | | | | boolean values Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
* Fixed jdbc to correctly report that constraints are supportedBarry Lind2003-09-17
| | | | | Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
* Applied patch from Fernando Nasser of RedHat to fix some error messagesBarry Lind2003-09-17
| | | | | | | | that would not get correctly looked up in the translation files for jdbc Modified Files: jdbc/org/postgresql/errors.properties jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
* Applied patch from Kim Ho at redhat to improve boolean and bit handlingBarry Lind2003-09-17
| | | | | | | | in the jdbc driver Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java
* More SQLState updates from Kim Ho at Redhat.Barry Lind2003-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | Also a patch from Kris Jurka to correctly report SQLState support. Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/fastpath/Fastpath.java jdbc/org/postgresql/geometric/PGbox.java jdbc/org/postgresql/geometric/PGcircle.java jdbc/org/postgresql/geometric/PGline.java jdbc/org/postgresql/geometric/PGlseg.java jdbc/org/postgresql/geometric/PGpath.java jdbc/org/postgresql/geometric/PGpoint.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java jdbc/org/postgresql/jdbc2/Array.java jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java jdbc/org/postgresql/util/PGmoney.java jdbc/org/postgresql/util/PSQLState.java
* Clean up some unused import warnings in the example jdbc codeBarry Lind2003-09-09
|
* Additional SQLState work for JDBC - thanks to Kim Ho at Redhat for input on thisBarry Lind2003-09-09
| | | | | | | | | | | Modified Files: jdbc/build.xml jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java jdbc/org/postgresql/util/PSQLState.java
* Opps, can't forget the new file. This is part of the last commit to applyBarry Lind2003-09-08
| | | | | | | the redhat patch for SQLState support. Added Files: PSQLState.java
* This set of changes applies a patch from KHO at redhat to add some SQLStateBarry Lind2003-09-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | support to the jdbc driver. That patch needed some work: it assumed the sqlcode in a server message was fixed in its position, the patch lost the ability to pass exceptions, and the patch missed a couple of places where server errors where being received. In addition to fixing the above, I also added full support for the V3 protocol error message syntax, I reversed the order of arguments in the PSQLException constructor to more closely follow the constructors for SQLException, I changed the new constructors that take PSQLState to take Object for additional parameters as the old ones did. Still todo are to add SQLState values to all existing exceptions thrown in the driver and add support for parsing the V3 protocol format for notices. Modified Files: jdbc/build.xml jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/errors.properties jdbc/org/postgresql/core/Encoding.java jdbc/org/postgresql/core/PGStream.java jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/fastpath/Fastpath.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java jdbc/org/postgresql/util/MessageTranslator.java jdbc/org/postgresql/util/PSQLException.java
* Attempt to fix setMaxFieldSize() logic that was checked in yesterday.Barry Lind2003-08-26
| | | | | | | | | | I think this should fix the problem, but since I don't have a reproducable test case, I can't be sure. This problem is reported by Kim Ho of redhat, who will test this fix. This also includes a test case for the original functionality. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/test/jdbc2/ResultSetTest.java
* Applied patches from Oliver Jowett to fix the following bugs:Barry Lind2003-08-24
| | | | | | | | | | | | - adds a finalizer method to AbstractJdbc1Statement to clean up in the case of poor user code which fails to close the statement object - fix ant build file to correctly detect dependencies across jdbc1/jdbc2/jdbc3 - fix a coupld of server prepared statement bugs and added regression test for them Applied patch from Kim Ho: - adds support for get/setMaxFieldSize(). Also fixed build.xml to provide a better error message in the event that an older version of the driver exists in the classpath when trying to build.
* Updated the blob regression test to actually use the getBlob/getClob methodsBarry Lind2003-08-15
| | | | | | | and test them, in addition to testing the underlying LargeObject API methods. Modified Files: jdbc/build.xml jdbc/org/postgresql/test/jdbc2/BlobTest.java
* Fixed improper message length for the connection termination message 'X' whenBarry Lind2003-08-15
| | | | | | | using the V3 protocol. Modified Files: jdbc1/AbstractJdbc1Connection.java
* Applied patch from Oliver Jowett to clean up the jdbc regression test buildBarry Lind2003-08-11
| | | | | | Modified Files: jdbc/build.xml jdbc/org/postgresql/test/jdbc3/Jdbc3TestSuite.java
* Applied patch from Oliver Jowett to better handle invalid input for getArrayBarry Lind2003-08-11
| | | | | | | (no longer throw an index out of range exception) Modified Files: jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
* Applied patch from Oliver Jowett to clean up some aditional warning messagesBarry Lind2003-08-11
| | | | | | | from ant. Modified Files: jdbc/build.xml
* Applied patch from Oliver Jewett to fix a deprecation in newer versions of antBarry Lind2003-08-11
| | | | | Modified Files: jdbc/build.xml
* Applied patch from Oliver Jewett to clean up the testing README fileBarry Lind2003-08-11
| | | | | Modified Files: jdbc/org/postgresql/test/README
* Applied patch by Oliver Jowett to clean up some exception handlingBarry Lind2003-08-11
| | | | | | Modified Files: jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/util/PSQLException.java
* Applied patch from Oliver Jowett to improve a buffer sizing.Barry Lind2003-08-11
| | | | | Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
* Applied patch from Kim Ho to fix a regression against a 7.4 server. The resultBarry Lind2003-08-11
| | | | | | | | | | of transaction isolation level changed from uppercase to lower case between 7.3 and 7.4. In testing, a regression was also fixed in this area when talking to a 7.2 server due to changes in how notice messages are processed in the current code. Modified Files: jdbc/build.xml jdbc/org/postgresql/core/BaseStatement.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
* Sometimes the third time is the charm. Third try to fix the sql injectionBarry Lind2003-08-07
| | | | | | | | | | | | | | | vulnerability. This fix completely removes the ability (hack) of being able to bind a list of values in an in clause. It was demonstrated that by allowing that functionality you open up the possibility for certain types of sql injection attacks. The previous fix attempts all focused on preventing the insertion of additional sql statements (the semi-colon problem: xxx; any new sql statement here). But that still left the ability to change the where clause on the current statement or perform a subselect which can circumvent applicaiton security logic and/or allow you to call any stored function. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
* Applied patch from kho@redhat.com to fix a problem with trying to use a fetchBarry Lind2003-08-06
| | | | | | | when a cursor wasn't being used. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
* Fixes additional sql injection vulnerabilities reported by Oliver JowettBarry Lind2003-07-24
| | | | | | | | and Dmitry Tkach. Specifically the previous fix still allowed the statement termination character through in unquoted places in the sql statement, and the driver never correctly handled someone passing a value of \0 in a string which under the v2 protocol would end the statement causing the following text to possibly be treated as a new sql statement Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
* Fix to prevent SQL injection attacks for code calling setObject(int,Object,int)Barry Lind2003-07-22
| | | | | | | | | | where Object is a user supplied String and the type is a numeric type (i.e. INTEGER,LONG,etc). Also applied a patch from Kim Ho that fixes compile problems under jdk1.2 Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
* Applied patch from dmitry@openratings.com to fix parsing of array valuesBarry Lind2003-07-21
| | | | | | Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc2/Array.java
* Applied patch from Kim Ho @ redhat.com to make support for setObject() moreBarry Lind2003-07-09
| | | | | | | | spec complient with regards to various data/time/timestamp objects Modified Files: jdbc/org/postgresql/errors.properties jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
* patches by Kim Ho to fixDave Cramer2003-06-30
| | | | | | getByte, getSort if input has decimal or whitespace setObject if object is a BIT boolean not on list of SQLKeywords
* Patches applied:Barry Lind2003-06-30
| | | | | | | | | | | | | | | 1) Patch from Kris Jurka to fix IPv6 parsing of the jdbc URL 2) Patch from Kris Jurka to fix an ArrayIndexOutOfBounds error when calling moveToCurrentRow while currentRow is "beforeFirst" 3) Patch from Kim Ho to fix add some bounds checking in setMaxRows(), setQueryTimeout(), setFetchSize() Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/errors.properties jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
* one more change to correctly support the removeall of autocommitBarry Lind2003-05-29
|