summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-02 14:29:16 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-02 15:39:52 +0200
commit935eab83a92426d9fd9e335d8f16c7c4658491c1 (patch)
tree1fdf60babe65cf8679c17cc148fbdc8dfbd98bac /connectivity
parent6f92b92458a35c3c88b732dabe4d6242fafe9584 (diff)
Make getPrimaryKeys actually work. (firebird-sdbc)
Change-Id: Ia300e85675a24a2900cfeb8ee75bf58356b14b30
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index 43e4889b7efe..c30ba434d60f 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -1501,9 +1501,9 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
OUStringBuffer aQueryBuf("SELECT "
"constr.RDB$RELATION_NAME, " // 1. Table Name
"inds.RDB$FIELD_NAME, " // 2. Column Name
- "inds.RDB$SORT_ORDER, " // 3. Sequence Number
- "constr.RDB$CONSTRAINT_NAME, " // 4 Constraint name
- "FROM RDB$RELATION_FIELDS constr "
+ "inds.RDB$FIELD_POSITION, " // 3. Sequence Number
+ "constr.RDB$CONSTRAINT_NAME " // 4 Constraint name
+ "FROM RDB$RELATION_CONSTRAINTS constr "
"JOIN RDB$INDEX_SEGMENTS inds "
"on (constr.RDB$INDEX_NAME = inds.RDB$INDEX_NAME) ");