Solar_Sql_Adapter::fetchSql()

public string Solar_Sql_Adapter::fetchSql ( array|string $spec )

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

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.



Local