malyshev / yii-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.

Home Page:http://www.yiiframework.com/extension/yii-debug-toolbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YiiDebugToolbarPanelSql for SQL Server

heukirne opened this issue · comments

The function getServerInfo() don't work for sqlsrv driver.
The $serverInfo in function was an array for sqlsrv and broke the explode call.

My fix:

//$lines = explode('  ', $serverInfo);
//foreach($lines as $line) {
//list($key, $value) = explode(': ', $line, 2);
foreach($serverInfo as $key => $value) {
    $info[YiiDebug::t($key)] = $value;
}

Closed as duplicate of #97