Github user selvaganesang commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/347#discussion_r54488887
--- Diff: core/sql/optimizer/BindRI.cpp ---
@@ -417,12 +450,18 @@ void RefConstraint::getPredicateText(NAString &text,
NAString *corrName) const
{
NAString tblText = ( (corrName == NULL) ?
tblName.getQualifiedNameAsAnsiString() : *corrName);
+ int pos= 0;
text += "(";
for (CollIndex i = 0; i < keyColumns.entries(); i++)
{
- if (i)
+ if(isHiddenColumn(keyColumns[i]->getColName()) )
--- End diff --
Wonder if we can use isSystemColumn() instead. SystemColumn includes SYSKEY
column also. Also there is a method isSysKeyColumn(), just in case you want to
allow SYSKEY COLUMN.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---