]> granicus.if.org Git - postgresql/commit
Cleanup of backpatch of jdbc2 improvements to jdbc1:
authorBruce Momjian <bruce@momjian.us>
Thu, 17 May 2001 03:55:04 +0000 (03:55 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 17 May 2001 03:55:04 +0000 (03:55 +0000)
commit2e3c56a0eac55d813e93c38aeabb98822c6d3519
treeb49beddf51b9a02e3a76cafd8d3d618c6241f190
parent1ef5c99c85835c2fab281e968719f6cc33c4e0e1
Cleanup of backpatch of jdbc2 improvements to jdbc1:

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
src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java