Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1fb2d70
fixed limit variable ordering in the comments
avbdr Aug 2, 2017
04b2a29
Expand readme on autoreconnect and multipe connections usage
avbdr Aug 2, 2017
0685cb0
update release numbers
avbdr Aug 3, 2017
2959ecb
update copyright years
avbdr Aug 3, 2017
ff8f36b
Merge branch 'master' of https://github.com/joshcam/PHP-MySQLi-Databa…
avbdr Aug 8, 2017
2481e94
Bug #623: Mistake in Regexp
avbdr Aug 8, 2017
8d4dcb1
Fix for #554 Fixing Join usage with 'USING' instead of 'ON'
avbdr Aug 8, 2017
4d4971e
Fix empty exception message
avbdr Aug 9, 2017
64d335c
fix a typo
avbdr Aug 9, 2017
f497d49
Merge branch 'master' of https://github.com/avbdr/PHP-MySQLi-Database…
avbdr Aug 10, 2017
fd67835
Merge branch 'master' of https://github.com/joshcam/PHP-MySQLi-Databa…
avbdr Sep 15, 2017
ca246f1
Added LIKE case description into readme
avbdr Sep 15, 2017
51cc4d4
do not reset connection name when transtation is on
avbdr Nov 29, 2017
7c0c177
2.9 release
avbdr Nov 29, 2017
2d1d020
Merge branch 'master' of https://github.com/joshcam/PHP-MySQLi-Databa…
avbdr Nov 29, 2017
eab49fe
v2.9.1 bugfix release declate missing variable
avbdr Nov 30, 2017
53cc9f7
update composer.json
avbdr Feb 8, 2018
d467a2c
Merge branch 'master' of https://github.com/joshcam/PHP-MySQLi-Databa…
avbdr Feb 8, 2018
b40fd92
tag 2.9.2
avbdr Feb 8, 2018
995d0fe
back to development
avbdr Feb 8, 2018
043f3f2
remove legacy >where("firstname", Array ('LIKE' => '%John%')) support
avbdr Aug 24, 2019
031c143
Merge branch 'master' of https://github.com/joshcam/PHP-MySQLi-Databa…
avbdr Aug 24, 2019
5fd69fc
2.9.3 release
avbdr Aug 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions MysqliDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @copyright Copyright (c) 2010-2017
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
* @version 2.9.2
* @version 2.9.3
*/

class MysqliDb
Expand Down Expand Up @@ -968,12 +968,6 @@ public function delete($tableName, $numRows = null)
*/
public function where($whereProp, $whereValue = 'DBNULL', $operator = '=', $cond = 'AND')
{
// forkaround for an old operation api
if (is_array($whereValue) && ($key = key($whereValue)) != "0") {
$operator = $key;
$whereValue = $whereValue[$key];
}

if (count($this->_where) == 0) {
$cond = '';
}
Expand Down
2 changes: 1 addition & 1 deletion tests/mysqliDbTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function createTable ($name, $data) {
//$users = $db->get("users");
//print_r ($users);

$db->where("firstname", Array ('LIKE' => '%John%'));
$db->where("firstname", '%John%', 'like');
$users = $db->get("users");
if ($db->count != 1) {
echo "Invalid insert count in LIKE: ".$db->count;
Expand Down