Skip to content

Commit

Permalink
refs #1832 : bugfix - mysqli only extension mode uses mysqli predefined
Browse files Browse the repository at this point in the history
parameters
  • Loading branch information
inureyes committed Oct 13, 2015
1 parent 8264128 commit 1888d5a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions framework/data/MySQLi/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ public static function queryCount($query) {
public static function queryCell($query, $field = 0, $useCache = true) {
$type = MYSQL_BOTH;
if (is_numeric($field)) {
$type = MYSQL_NUM;
$type = MYSQLI_NUM;
} else {
$type = MYSQL_ASSOC;
$type = MYSQLI_ASSOC;
}

if ($useCache) {
Expand Down Expand Up @@ -359,12 +359,12 @@ public static function stat($stat = null) {
public static function __queryType($type) {
switch (strtolower($type)) {
case 'num':
return MYSQL_NUM;
return MYSQLI_NUM;
case 'assoc':
return MYSQL_ASSOC;
return MYSQLI_ASSOC;
case 'both':
default:
return MYSQL_BOTH;
return MYSQLI_BOTH;
}
}

Expand Down

0 comments on commit 1888d5a

Please sign in to comment.