2012-04-08 Junichi Satoh <junichi@rworks.jp>

* godmode/admin_access_logs.php: Fixed SQL error with PostgreSQL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2012-04-08 03:04:25 +00:00
parent bdf2e0309a
commit f2d1f2eb47
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-04-08 Junichi Satoh <junichi@rworks.jp>
* godmode/admin_access_logs.php: Fixed SQL error with PostgreSQL.
2012-04-04 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_pandora/functions.ajax.php,

View File

@ -119,7 +119,7 @@ if ($filter_hours_old != 0) {
$filter .= ' AND fecha >= DATE_ADD(NOW(), INTERVAL -' . $filter_hours_old . ' HOUR)';
break;
case "postgresql":
$filter .= ' AND fecha >= DATE_ADD(NOW(), INTERVAL - \'' . $filter_hours_old . ' HOUR \')';
$filter .= ' AND fecha >= NOW() - INTERVAL \'' . $filter_hours_old . ' HOUR \'';
break;
case "oracle":
$filter .= ' AND fecha >= (SYSTIMESTAMP - INTERVAL \'' . $filter_hours_old . '\' HOUR)';