Executes given SQL statement.
protected _execute ( string $sql, array $params = [], array $prepareOptions = [] ) : mixed | ||
$sql | string | SQL statement |
$params | array | list of params to be bound to query |
$prepareOptions | array | Options to be used in the prepare statement |
return | mixed | PDOStatement if query executes with no problem, true as the result of a successful, false on error query returning no rows, such as a CREATE statement, false otherwise |