Skip to content
Permalink
Browse files

Fixed issue #13334: PDOException after update to 3.3.0 (MSSQL)

  • Loading branch information
olleharstedt committed Feb 12, 2018
1 parent 1cbfa11 commit 3628c4b95711156d105dbc581213962447907d06
Showing with 29 additions and 5 deletions.
  1. +29 −5 application/views/admin/super/footer.php
@@ -10,12 +10,36 @@
gT('PHP version') => phpversion(),
gT('Web server name') => $_SERVER['SERVER_NAME'],
gT('Web server software') => $_SERVER['SERVER_SOFTWARE'],
gT('Web server info') => isset($_SERVER['SERVER_SIGNATURE']) ? $_SERVER['SERVER_SIGNATURE'] : $_SERVER['SERVER_PROTOCOL'],
gT('Database driver') => Yii::app()->db->driverName,
gT('Database driver version') => Yii::app()->db->clientVersion,
gT('Database server info') => Yii::app()->db->serverInfo,
gT('Database server version') => Yii::app()->db->serverVersion
gT('Web server info') => isset($_SERVER['SERVER_SIGNATURE']) ? $_SERVER['SERVER_SIGNATURE'] : $_SERVER['SERVER_PROTOCOL']
];
// MSSQL does not support some of these attributes, so much
// catch possible PDO exception.
try {
$systemInfos[gT('Database driver')] = Yii::app()->db->driverName;
} catch (Exception $ex) {
$systemInfos[gT('Database driver')] = $ex->getMessage();
}
try {
$systemInfos[gT('Database driver version')] = Yii::app()->db->clientVersion;
} catch (Exception $ex) {
$systemInfos[gT('Database driver version')] = $ex->getMessage();
}
try {
$systemInfos[gT('Database server info')] = Yii::app()->db->serverInfo;
} catch (Exception $ex) {
$systemInfos[gT('Database server info')] = $ex->getMessage();
}
try {
$systemInfos[gT('Database server version')] = Yii::app()->db->serverVersion;
} catch (Exception $ex) {
$systemInfos[gT('Database server version')] = $ex->getMessage();
}
?>
<!-- Footer -->
<footer class='footer'>

0 comments on commit 3628c4b

Please sign in to comment.
You can’t perform that action at this time.