Previous Page
fetchPdo()

Solar_Sql_Adapter_Mysql
fetchSql()

Next Page
fetchTableCols()

fetchSql()

public string fetchSql ( array|string $spec )

Builds the SQL statement and returns it as a string instead of executing it.

Inherited from Solar_Sql_Adapter.

Parameters

  • (array|string) $spec: An array of component parts for a SELECT, or a literal query string.

Returns

  • (string)

Description

Builds the SQL statement and returns it as a string instead of executing it.

Useful for debugging.