Skip to content

Commit c4fd68c

Browse files
committed
fix rawQuery prototype and doc
1 parent 35cc763 commit c4fd68c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

MysqliDb.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,14 @@ public function setPrefix($prefix = '')
280280
}
281281

282282
/**
283-
* Pass in a raw query and an array containing the parameters to bind to the prepaird statement.
283+
* Execute raw SQL query.
284284
*
285-
* @param string $query Contains a user-provided query.
286-
* @param array $bindParams All variables to bind to the SQL statment.
287-
* @param bool $sanitize If query should be filtered before execution
285+
* @param string $query User-provided query to execute.
286+
* @param array $bindParams Variables array to bind to the SQL statement.
288287
*
289288
* @return array Contains the returned rows from the query.
290289
*/
291-
public function rawQuery ($query, $bindParams = null, $sanitize = true)
290+
public function rawQuery ($query, $bindParams = null)
292291
{
293292
$params = array(''); // Create the empty 0 index
294293
$this->_query = $query;

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements
77
**[Update Query](#update-query)**
88
**[Select Query](#select-query)**
99
**[Delete Query](#delete-query)**
10-
**[Running raw SQL queries](#running-raw-sql-queries)**
10+
**[Running raw SQL queries](#running-raw-sql-queries)**
1111
**[Query Keywords](#query-keywords)**
1212
**[Raw Query](#raw-query-method)**
1313
**[Where Conditions](#where-method)**

0 commit comments

Comments
 (0)