NABoolean TableDesc::isIdentityColumnGeneratedAlways(NAString * value) const { // Determine if an IDENTITY column exists and // has the default class of GENERATED ALWAYS AS IDENTITY. // Do not return TRUE, if the table type is an INDEX_TABLE. NABoolean result = FALSE; for (CollIndex j = 0; j < colList_.entries(); j++) { ValueId valId = colList_[j]; NAColumn *column = valId.getNAColumn(); if(column->isIdentityColumnAlways()) { if (getNATable()->getObjectType() != COM_INDEX_OBJECT) { if (value != NULL) *value = column->getColName(); result = TRUE; } } } return result; }