Commit 3da55639 authored by Alexander Butenko's avatar Alexander Butenko

Merge pull request #280 from avbdr/master

fix rawQuery prototype and doc
parents c28a3d24 c4fd68c6
......@@ -280,15 +280,14 @@ class MysqliDb
}
/**
* Pass in a raw query and an array containing the parameters to bind to the prepaird statement.
* Execute raw SQL query.
*
* @param string $query Contains a user-provided query.
* @param array $bindParams All variables to bind to the SQL statment.
* @param bool $sanitize If query should be filtered before execution
* @param string $query User-provided query to execute.
* @param array $bindParams Variables array to bind to the SQL statement.
*
* @return array Contains the returned rows from the query.
*/
public function rawQuery ($query, $bindParams = null, $sanitize = true)
public function rawQuery ($query, $bindParams = null)
{
$params = array(''); // Create the empty 0 index
$this->_query = $query;
......
......@@ -7,7 +7,7 @@ MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements
**[Update Query](#update-query)**
**[Select Query](#select-query)**
**[Delete Query](#delete-query)**
**[Running raw SQL queries](#running-raw-sql-queries)**
**[Running raw SQL queries](#running-raw-sql-queries)**
**[Query Keywords](#query-keywords)**
**[Raw Query](#raw-query-method)**
**[Where Conditions](#where-method)**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment