fix check for existing tables for pgsql

This commit is contained in:
Uwe Steinmann 2017-02-28 07:04:29 +01:00
parent eab6552788
commit 35071d40bc

View File

@ -345,7 +345,18 @@ if ($action=="setSettings") {
$needsupdate = false;
$connTmp =openDBConnection($settings);
if ($connTmp) {
$res = $connTmp->query('select * from tblVersion');
switch($settings->_dbDriver) {
case 'mysql':
case 'mysqli':
case 'mysqlnd':
case 'sqlite':
$sql = 'select * from `tblVersion`';
break;
case 'pgsql':
$sql = 'select * from "tblVersion"';
break;
}
$res = $connTmp->query($sql);
if($res) {
if($rec = $res->fetch(PDO::FETCH_ASSOC)) {
$updatedirs = array();