Skip to content

Commit

Permalink
refs #1612 : bugfix - MySQLi adapter did not return correct DBMS
Browse files Browse the repository at this point in the history
 version.
 refs #1579 : enhanced - simpler permission instructions.

 -
  • Loading branch information
inureyes committed Nov 7, 2014
1 parent ec898e8 commit 8db9b6a
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 72 deletions.
5 changes: 2 additions & 3 deletions framework/data/MySQL/Adapter.php
Expand Up @@ -46,8 +46,7 @@ public static function dbms() {
public static function version($mode = 'server') {
if (array_key_exists('version', self::$dbProperties)) return self::$dbProperties['version'];
else {
$version = self::queryRow("SHOW VARIABLES LIKE 'version'");
self::$dbProperties['version'] = $version['Value'];
self::$dbProperties['version'] = self::queryCell("SELECT VERSION()");
return self::$dbProperties['version'];
}
}
Expand Down Expand Up @@ -353,4 +352,4 @@ public static function fieldType($abstractType) {
"text" => "text");

}
?>
?>
2 changes: 1 addition & 1 deletion framework/data/MySQLi/Adapter.php
Expand Up @@ -55,7 +55,7 @@ public static function dbms() {
public static function version($mode = "server") {
if (array_key_exists('version', self::$dbProperties)) return self::$dbProperties['version'];
else {
self::$dbProperties['version'] = self::queryCell("SHOW VARIABLES LIKE 'version'");
self::$dbProperties['version'] = self::queryCell("SELECT VERSION()");
return self::$dbProperties['version'];
}
}
Expand Down

0 comments on commit 8db9b6a

Please sign in to comment.