Previous Page
_modAutoincPrimary()

Solar_Sql_Adapter_Sqlite
_modIndexName()

Next Page
_modSelect()

_modIndexName()

protected string _modIndexName ( string $table, string $name )

Modifies the index name.

Parameters

  • (string) $table: The table on which the index occurs.
  • (string) $name: The requested index name.

Returns

  • (string) The modified index name.

Description

Modifies the index name.

SQLite won't allow two indexes of the same name, even if they are on different tables. This method modifies the name by prefixing with the table name and two underscores. Thus, for a index named 'foo' on a table named 'bar', the modified name will be 'foo__bar'.