Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80c0291

Browse files
author
Dave Cramer
committed
fixes getIndex to work with forte's transparent persistence
1 parent276450d commit80c0291

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* This class provides information about the database as a whole.
1717
*
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 $
1919
*
2020
* <p>Many of the methods here return lists of information in ResultSets. You
2121
* 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
29032903
tuple[0] ="".getBytes();
29042904
tuple[1] ="".getBytes();
29052905
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;
29082908
tuple[5] =r.getBytes(3);
29092909
tuple[6] =r.getBoolean(4) ?
29102910
Integer.toString(tableIndexClustered).getBytes() :
@@ -2913,7 +2913,10 @@ public java.sql.ResultSet getIndexInfo(String catalog, String schema, String tab
29132913
Integer.toString(tableIndexOther).getBytes();
29142914
tuple[7] =Integer.toString(i +1).getBytes();
29152915
java.sql.ResultSetcolumnNameRS =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();
29172920
tuple[8] =columnNameRS.getBytes(1);
29182921
tuple[9] =null;// sort sequence ???
29192922
tuple[10] =r.getBytes(7);// inexact

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp