summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc
AgeCommit message (Collapse)Author
2001-07-09postgresql.badint property name was probably meant to bePeter Eisentraut
postgresql.res.badint, since that's the name in the properties file.
2001-07-08Implement DatabaseMetaData.getCatalogs()Peter Eisentraut
2001-07-08Bring DatabaseMetaData feature tests up to date:Peter Eisentraut
* NULLs are sorted differently in 7.2 * table correlation names are supported * GROUP BY, ORDER BY unrelated is supported since 6.4 * ESCAPE/LIKE only supported since 7.1 * outer joins only since 7.1 * preferred term for procedure is "function" * preferred term for catalog is "database" * supports SELECT for UPDATE since 6.5 * supports subqueries * supports UNION; supports UNION ALL since 7.1 * update some of the max lengths to match reality * rearrange some functions to match the order in the spec for easier maintenance
2001-07-07Sync with jdbc2, remove gratuitous white space differences.Peter Eisentraut
2001-07-06Resolve a number of oddities in the Java build. First, remove the weirdPeter Eisentraut
redirections between the build files, which didn't work completely. Now you just go to the directory of your choice and run make. Clean up the build files to have a logical order, fix the unnecessary rebuilds, prevent the deleting targets from removing files they're not responsible for. Ant 1.3 does not have a bug. It deletes directories just fine if you follow the documentation.
2001-07-06Terminate message doesn't have a trailing zero byte.Peter Eisentraut
2001-07-04Remove ConnectionHook.java. No longer used, bad code.Bruce Momjian
2001-07-04The attached patch removes some old and dead code (and some relatedBruce Momjian
misleading comments) from the PG_Stream class. Anders Bengtsson
2001-07-04This patch moves the setting of the timezone on the SimpleDateFormatBruce Momjian
object inside the initialization section instead of doing it everytime the setTimestamp method is called. Thanks to Dave Harkness for this suggestion. Barry Lind
2001-07-04Attached is a patch to remove the ConnectionHook functionality and thusBruce Momjian
the JDK 1.3 dependency. For a further explanation see my posting to the JDBC list on Friday, explaining why this is being done. Barry Lind
2001-06-29SimpleDateFormat performance improvement, thread-safe.Bruce Momjian
Barry Lind
2001-06-25High memory usageBruce Momjian
Here is a patch which inspired by Michael Stephens that should work Dave Cramer
2001-06-11 Got two patches that were found by folks on the Castor list, that we'd like toBruce Momjian
submit. These were done for the jdbc2 driver. The first one is for support of the Types.BIT in the PreparedStatement class. The following lines need to be inserted in the switch statment, at around line 530: (Prepared statment, line 554, before the default: switch case Types.BIT: if (x instanceof Boolean) { set(parameterIndex, ((Boolean)x).booleanValue() ? "TRUE" : "FALSE"); } else { throw new PSQLException("postgresql.prep.type"); } break; The second one is dealing with blobs, inserted in PreparedStatemant.java (After previous patch line, 558): case Types.BINARY: case Types.VARBINARY: setObject(parameterIndex,x); break; and in ResultSet.java (Around line 857): case Types.BINARY: case Types.VARBINARY: return getBytes(columnIndex); Ned Wolpert <ned.wolpert@knowledgenet.com>
2001-06-07Document and work around ANT bug that prevents directory deletion.Bruce Momjian
2001-06-07This adds unary plus capability. No grammar changes, per Tom's request.Bruce Momjian
Marko Kreen
2001-06-06Add large object finalization cleanup to the proper java file.Bruce Momjian
2001-06-06Remove large object finalize code. Compile error.Bruce Momjian
2001-06-04protected void finalize() {Bruce Momjian
close(); } in LargeObject.java so that the db resources are released when it is garbage collected or am I missing something? Philip Crotwell
2001-06-01The following patch for JDBC fixes an issue with jdbc running on aBruce Momjian
non-multibyte database loosing 8bit characters. This patch will cause the jdbc driver to ignore the encoding reported by the database when multibyte isn't enabled and use the JVM default in that case. Barry Lind
2001-05-30I just got bitten by this too. I use type timestamp in theBruce Momjian
database, and often need the latest timestamp, but want to format it as a date. With 7.0.x, I just select ts from foo order by ts desc limit 1 and in java: d = res.getDate(1); but this fails everywhere in my code now :( http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame7.html says The ResultSet.getXXX methods will attempt to convert whatever SQL type was returned by the database to whatever Java type is returned by the getXXX method. Palle Girgensohn
2001-05-30Fix for Druid. We did not support some PROCEDURE queries.Bruce Momjian
Dave Cramer
2001-05-28Attached is a patch to fix the problem Thomas mentions below. The JDBCBruce Momjian
driver now correctly handles timezones that are offset fractional hours from GMT (ie. -06:30). Barry Lind
2001-05-25Mention failure of ANT to delete directories on clean.Bruce Momjian
2001-05-25The following patch corrects a make install problem when buildingBruce Momjian
under Cygwin. The root cause of this problem is that (Sun) java is a native Win32 app and hence does not understand Cygwin Posix style paths. The solution is to use Cygwin's cygpath utility to convert the Posix style JDBC installation directory path into a Win32 one before invoking ant. I'm not sure if my patch is the best way to correct this issue but my goal was to confine the Cygwin specific constructs to Jason Tishler
2001-05-24There are a number of changes. The main ones are:Bruce Momjian
return oid on insert handle all primitive data types handle single quotes and newlines in Strings handle null variables deal with non public and final variables (not very well, though) Ken K
2001-05-23Fix ANT for *.properties files.Bruce Momjian
2001-05-23Fix ANT so it only has '*.class' files, not the 'tags' file.Bruce Momjian
2001-05-22Back out timezone fix. Not needed in jdbc1.Bruce Momjian
2001-05-19Prevent ANT from recreating the JAR files just because theBruce Momjian
errors.properties files were being copied.
2001-05-17Fix pg_index statistics query to join proper relation.Bruce Momjian
2001-05-17Included is a patch that fixes a bug introduced in the lastest versionBruce Momjian
(1.22) of interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java. That change removed a line that set the variable s to the value of the stringbuffer. This fix changes the following if checks to check the length of the stringbuffer instead of s, since s no longer contains the string the if conditions are expecting. The bug manifests itself in getTimestamp() loosing the timezone information of timestamps selected from the database, thereby causing the time to be incorrect. Barry Lind
2001-05-17Cleanup of backpatch of jdbc2 improvements to jdbc1:Bruce Momjian
Here's what I came up with. The biggest difference api between JDK1.x and later versions is the support for collections. The problem was with the Vector class; in jdk1.x there is no method called add, so I changed the calls to addElement. Also no addAll, so I rewrote the method slightly to not require addAll. While reviewing this I notices some System.out.println statements that weren't commented out. So I commented them out in both versions. The upshot of all of this is that I have clean compile, but no idea if the code works ;( Dave Cramer
2001-05-17Fix 'make clean' with jdbc and ant by using filesets.Bruce Momjian
2001-05-17Mark column as not used.Bruce Momjian
2001-05-16Fix for HASH for index lookups in ODBC.Bruce Momjian
2001-05-16This patch fixes a bug which occurs when setObject(1,obj) is called and objBruce Momjian
is of type Object, and is null Dave Cramer
2001-05-16Add NUMERIC tests to jdbc code.Bruce Momjian
David Esposito
2001-05-16I was trying to get a very nice FREE graphical db tool called DbVisualizerBruce Momjian
(http://www.ideit.com/products/dbvis/) to work with Postgresql and I found out the following bug: if database has views then getTables() gets the null pointer exception ('order by relname' makes the listing tree in DbVisualizer a lot useful !!) This patch should propably be applied to the the jdbc1's DatabaseMetaData.java, too. Panu Outinen
2001-05-16Change the line:Bruce Momjian
return ((c == 't') || (c == 'T')); int the getBoolean function on line 184:ish to: return ((c == 't') || (c == 'T') (c == '1')); Hunter Hillegas
2001-05-16Backpatch jdbc2 fixes to jdbc1, ANT fixes, from Peter EisentrautBruce Momjian
2001-05-16Backpatch getImportedKeys to jdbc1.Bruce Momjian
2001-05-16Backpatch ORDER BY fix to jdbc1.Bruce Momjian
2001-05-16Here's an easy patch for todays snapshot to sort the result of theBruce Momjian
public ResultSet getTables(String catalog, String schemaPattern, String Jeroen van Vianen
2001-05-16jdbc2 implementation of getImportedKeys.Bruce Momjian
Ola Sundell
2001-05-16The current implementation of BlobInputStream doesBruce Momjian
not properly handle 8-bit unsigned data as it blindly casts the byte to an int, which java most helpfully promotes to a signed type. This causes problems when you can only return -1 to indicated EOF. The following patch fixes the bug and has been tested locally on image data. Chad David
2001-05-11Stamp CVS as 7.2. Update all interface version numbers. This is theBruce Momjian
time to do it, not during beta because people are using this stuff in production sometimes.
2001-05-09that's just me again, here's normal patch for KOI8_U toBruce Momjian
jdbc/Connection.java Andy P.S. in Connection.java if encoding=="WIN" then dbEncoding is set to "Cp1252". What if it's Cyrillic "WIN"? Than it should be "Cp1251". Is there any way to fix that without making different "WIN" encodings in PostgreSQL? Andy Rysin
2001-05-09Mention new jdbc mailing list instead of interfaces list.Bruce Momjian
2001-05-08Fix paren typo in java.Bruce Momjian
2001-03-19Update Peter Mount's email address in README.Bruce Momjian