mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
fix update of postgres database
This commit is contained in:
parent
cd4743d917
commit
92bee67638
|
@ -435,7 +435,18 @@ if (!$db) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$errorMsg = '';
|
$errorMsg = '';
|
||||||
$res = $db->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 = $db->query($sql);
|
||||||
$recs = $res->fetchAll(PDO::FETCH_ASSOC);
|
$recs = $res->fetchAll(PDO::FETCH_ASSOC);
|
||||||
if(!empty($recs)) {
|
if(!empty($recs)) {
|
||||||
$rec = $recs[0];
|
$rec = $recs[0];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user