Previous Page
_modIndexName()

Solar_Sql_Adapter_Mysql
_modSelect()

Next Page
_modSequenceName()

_modSelect()

protected void _modSelect ( string &$stmt, array &$parts )

Modifies a SELECT statement in place to add a LIMIT clause.

Inherited from Solar_Sql_Adapter.

Parameters

  • (string) &$stmt: The SELECT statement.
  • (array) &$parts: The orignal SELECT component parts, in case the adapter needs them.

Returns

  • (void)

Description

Modifies a SELECT statement in place to add a LIMIT clause.

The default code adds a LIMIT for MySQL, PostgreSQL, and Sqlite, but adapters can override as needed.