function DatabaseSchema_pgsql::_createIndexSql

2 calls to DatabaseSchema_pgsql::_createIndexSql()
DatabaseSchema_pgsql::addIndex in includes/database/pgsql/schema.inc
Add an index.
DatabaseSchema_pgsql::createTableSql in includes/database/pgsql/schema.inc
Generate SQL to create a new table from a Drupal schema definition.

File

includes/database/pgsql/schema.inc, line 789

Class

DatabaseSchema_pgsql

Code

protected function _createIndexSql($table, $name, $fields) {
    $query = 'CREATE INDEX "' . $this->ensureIdentifiersLength($table, $name, 'idx') . '" ON {' . $table . '} (';
    $query .= $this->_createKeySql($fields) . ')';
    return $query;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.