From c4fd68c632d69007a2dcd15a081a7983886ac203 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Mon, 3 Aug 2015 13:30:52 +0000 Subject: [PATCH] fix rawQuery prototype and doc --- MysqliDb.php | 9 ++++----- readme.md | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/MysqliDb.php b/MysqliDb.php index 42dc34a8..74c124e1 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -280,15 +280,14 @@ public function setPrefix($prefix = '') } /** - * 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; diff --git a/readme.md b/readme.md index dfd9a9de..56fb669f 100644 --- a/readme.md +++ b/readme.md @@ -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)**