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 fd619d3 commit 5c6697e
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 71 deletions.
3 changes: 1 addition & 2 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
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 5c6697e

Please sign in to comment.