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

Commit393b085

Browse files
author
Dave Cramer
committed
fixed retrieval of foreign/primary keys in imported/exported keys
1 parentcdfa456 commit393b085

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 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.56 2002/06/20 16:00:44 momjian Exp $
18+
* $Id: DatabaseMetaData.java,v 1.57 2002/06/25 16:30:49 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
@@ -2500,7 +2500,7 @@ private java.sql.ResultSet getImportedExportedKeys(String catalog, String schema
25002500
f[13] =newField(connection,"DEFERRABILITY",iInt2Oid,2);
25012501

25022502
java.sql.ResultSetrs =connection.ExecSQL(
2503-
"SELECT "
2503+
"SELECTdistinct"
25042504
+"c.relname as prelname, "
25052505
+"c2.relname as frelname, "
25062506
+"t.tgconstrname, "
@@ -2676,8 +2676,8 @@ else if ("setdefault".equals(rule))
26762676
tuple[7] =fkeyColumns.toString().getBytes();//FKCOLUMN_NAME
26772677

26782678
tuple[8] =rs.getBytes(4);//KEY_SEQ
2679-
tuple[11] =rs.getBytes(5);//FK_NAME
2680-
tuple[12] =rs.getBytes(3);//PK_NAME
2679+
tuple[11] =rs.getBytes(3);//FK_NAME
2680+
tuple[12] =rs.getBytes(5);//PK_NAME
26812681

26822682
// DEFERRABILITY
26832683
intdeferrability =importedKeyNotDeferrable;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp