Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit fe34dcc

Browse files
author
Charles Ma
committed
BUG: fixed bug #154 Check if MYSQL_ATTR_USE_BUFFERED_QUERY is defined (Thanks Patrick)
Also fixed an issue with the last version of the paraview JS and webgl
1 parent 3393492 commit fe34dcc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

core/Bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ protected function _initConfig()
6565
$configDatabase = new Zend_Config_Ini(DATABASE_CONFIG, $configGlobal->environment, true);
6666
if($configDatabase->database->type == 'pdo')
6767
{
68+
// Does the server PDO support MySQL?
69+
if(!defined('PDO::MYSQL_ATTR_USE_BUFFERED_QUERY'))
70+
{
71+
throw new Zend_Exception('It appears PDO is not setup to support MySQL. '.
72+
'Please check your PDO configuration.');
73+
}
6874
$pdoParams = array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true);
6975
$params = array(
7076
'host' => $configDatabase->database->params->host,

modules/visualize/public/js/paraview/paraview.index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,9 @@ var serverUrl = "/PWService";
131131
resetCamera();
132132
initController();
133133
}
134+
else
135+
{
136+
paraview.updateConfiguration(true, "JPEG", "WebGL");
137+
}
134138
}
135139
}

0 commit comments

Comments
 (0)