|
If I add one following line, getImportedKeys returns only one row for
T1. @@ -544,6 +580,7 @@ CONGLOMS.DESCRIPTOR.getKeyColumnPosition(COLS.COLUMNNUMBER) ELSE 0 END) <> 0 \ AND K.CONGLOMERATEID = CONGLOMS.CONGLOMERATEID \ AND C.TABLEID = COLS.REFERENCEID \ + AND CONGLOMS.CONGLOMERATENAME = C.CONSTRAINTNAME \ ORDER BY PKTABLE_CAT, \ PKTABLE_SCHEM, \ PKTABLE_NAME, \ With the change it returns two rows for T2 and no rows for T3. I am not sure if this output is correct nor if the change is OK. Satheesh PS: After changing metadata.properties, a new database needs to be created to see changed behavior. [bandaram:satheesh] java keys T1 ******* Call getImportedKeys **************************************** Imported keys# 1 **************************************** PKTABLE_CAT: PKTABLE_SCHEM: APP PKTABLE_NAME: T2 PKCOLUMN_NAME: C21_ID FKTABLE_CAT: FKTABLE_SCHEM: APP FKTABLE_NAME: T1 FKCOULMN_NAME: C11_ID KEY_SEQ: 1 UPDATE_RULE: 3 DELETE_RULE: 0 FK_NAME: F_12 PK_NAME: SQL060127103319020 DEFERRABILITY: 7 **************************************** [bandaram:satheesh] java keys T2 ******* Call getImportedKeys **************************************** Imported keys# 1 **************************************** PKTABLE_CAT: PKTABLE_SCHEM: APP PKTABLE_NAME: T3 PKCOLUMN_NAME: C31_ID FKTABLE_CAT: FKTABLE_SCHEM: APP FKTABLE_NAME: T2 FKCOULMN_NAME: C21_ID KEY_SEQ: 1 UPDATE_RULE: 3 DELETE_RULE: 0 FK_NAME: F_443 PK_NAME: SQL060127103320650 DEFERRABILITY: 7 **************************************** **************************************** Imported keys# 2 **************************************** PKTABLE_CAT: PKTABLE_SCHEM: APP PKTABLE_NAME: T3 PKCOLUMN_NAME: C31_ID FKTABLE_CAT: FKTABLE_SCHEM: APP FKTABLE_NAME: T2 FKCOULMN_NAME: C21_ID KEY_SEQ: 1 UPDATE_RULE: 3 DELETE_RULE: 0 FK_NAME: F_443 PK_NAME: SQL060127103320650 DEFERRABILITY: 7 **************************************** [bandaram:satheesh] java keys T3 ******* Call getImportedKeys [bandaram:satheesh] Satheesh Bandaram wrote: Daniel John Debrunner wrote:Mamta Satoor wrote: |
- Re: (DERBY-655) getImportedKeys returns duplicate rows i... Satheesh Bandaram
- Re: (DERBY-655) getImportedKeys returns duplicate r... Satheesh Bandaram
- Re: (DERBY-655) getImportedKeys returns duplica... Mamta Satoor
- Re: (DERBY-655) getImportedKeys returns dup... Satheesh Bandaram
- Re: (DERBY-655) getImportedKeys returns duplicate r... Mamta Satoor
- Re: (DERBY-655) getImportedKeys returns duplica... Satheesh Bandaram
- Re: (DERBY-655) getImportedKeys returns duplica... Kathey Marsden
- Re: (DERBY-655) getImportedKeys returns dup... Mamta Satoor
- Re: (DERBY-655) getImportedKeys returns... Mamta Satoor
