15
15
/**
16
16
* This class provides information about the database as a whole.
17
17
*
18
- * $Id: DatabaseMetaData.java,v 1.44 2001/11/09 02:57:50 davec Exp $
18
+ * $Id: DatabaseMetaData.java,v 1.45 2001/11/14 20:04:00 davec Exp $
19
19
*
20
20
* <p>Many of the methods here return lists of information in ResultSets. You
21
21
* can use the normal ResultSet methods such as getString and getInt to
@@ -2903,8 +2903,8 @@ public java.sql.ResultSet getIndexInfo(String catalog, String schema, String tab
2903
2903
tuple [0 ] = "" .getBytes ();
2904
2904
tuple [1 ] = "" .getBytes ();
2905
2905
tuple [2 ] = r .getBytes (1 );
2906
- tuple [3 ] = r .getBoolean (2 ) ? "f " .getBytes () : "t " .getBytes ();
2907
- tuple [4 ] = null ;
2906
+ tuple [3 ] = r .getBoolean (2 ) ? "false " .getBytes () : "true " .getBytes ();
2907
+ tuple [4 ] = null ;
2908
2908
tuple [5 ] = r .getBytes (3 );
2909
2909
tuple [6 ] = r .getBoolean (4 ) ?
2910
2910
Integer .toString (tableIndexClustered ).getBytes () :
@@ -2913,7 +2913,10 @@ public java.sql.ResultSet getIndexInfo(String catalog, String schema, String tab
2913
2913
Integer .toString (tableIndexOther ).getBytes ();
2914
2914
tuple [7 ] = Integer .toString (i + 1 ).getBytes ();
2915
2915
java .sql .ResultSet columnNameRS = connection .ExecSQL ("select a.attname FROM pg_attribute a WHERE (a.attnum = " + columnOrdinals [i ] + ") AND (a.attrelid = " + r .getInt (9 ) + ")" );
2916
- columnNameRS .next ();
2916
+ if (columnNameRS .next ())
2917
+ tuple [8 ] = columnNameRS .getBytes (1 );
2918
+ else
2919
+ tuple [8 ] = "" .getBytes ();
2917
2920
tuple [8 ] = columnNameRS .getBytes (1 );
2918
2921
tuple [9 ] = null ; // sort sequence ???
2919
2922
tuple [10 ] = r .getBytes (7 ); // inexact
0 commit comments