Solar_Sql_Adapter_Mysql::quoteName()

public string|array Solar_Sql_Adapter_Mysql::quoteName ( string|array $spec )

Quotes a single identifier name (table, table alias, table column, index, sequence).

Inherited from Solar_Sql_Adapter.

Parameters

  • (string|array) $spec: The identifier name to quote. If an array, quotes each element in the array as an identifier name.

Returns

  • (string|array) The quoted identifier name (or array of names).

Description

Quotes a single identifier name (table, table alias, table column, index, sequence).

Ignores empty values.

If the name contains ' AS ', this method will separately quote the parts before and after the ' AS '.

If the name contains a space, this method will separately quote the parts before and after the space.

If the name contains a dot, this method will separately quote the parts before and after the dot.

See Also



Local