mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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
This commit is contained in:
@ -2194,12 +2194,12 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
|
||||
|
||||
s=keyRelation.getString(1);
|
||||
s2=s;
|
||||
System.out.println(s);
|
||||
// System.out.println(s);
|
||||
v=new Vector();
|
||||
for (i=0;;i++) {
|
||||
s=s.substring(s.indexOf("\\000")+4);
|
||||
if (s.compareTo("")==0) {
|
||||
System.out.println();
|
||||
//System.out.println();
|
||||
break;
|
||||
}
|
||||
s2=s.substring(0,s.indexOf("\\000"));
|
||||
@ -2249,10 +2249,11 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
|
||||
tuple[8]=Integer.toString(j).getBytes();
|
||||
|
||||
tuples.add(tuple);
|
||||
|
||||
/*
|
||||
System.out.println(origCols.getColumnName(j)+
|
||||
": "+j+" -> "+primTable+": "+
|
||||
(String)v.elementAt(i+1));
|
||||
*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user