mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
fix check for existing tables for pgsql
This commit is contained in:
parent
eab6552788
commit
35071d40bc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user