/** * Retrieve list of columns used for an index or return false, if an index with a given name does not exist * * @param string $tableName * @param string $indexName * @param string|null $schemaName * @return array|false */ protected function _getIndexColumns($tableName, $indexName, $schemaName = null) { foreach ($this->_connection->getIndexList($tableName, $schemaName) as $idxData) { if ($idxData['KEY_NAME'] == $indexName) { return $idxData['COLUMNS_LIST']; } } return false; }