QualifiedName * CmpSqlSession::updateVolatileQualifiedName(const NAString &inName) { QualifiedName *result = NULL; if (volatileSchemaInUse_) { result = new (heap_) QualifiedName(inName, volatileSchemaName(), volatileCatalogName(), heap_); CMPASSERT(result); result->setIsVolatile(TRUE); } return result; }
QualifiedName * CmpSqlSession::updateVolatileQualifiedName(QualifiedName &inName) { QualifiedName *result = &inName; if (volatileSchemaInUse_) { result = new (heap_) QualifiedName(inName.getObjectName(), volatileSchemaName(), volatileCatalogName(), heap_); CMPASSERT(result); result->setNamePosition(inName.getNamePosition()); result->setIsVolatile(TRUE); } return result; }