2011-07-18 Sergio Martin <sergio.martin@artica.es>

* operation/agentes/gis_view.php: Fixed sql typo error



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4579 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-07-18 08:36:07 +00:00
parent 70a4da25b8
commit 7bffe86b33
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-07-18 Sergio Martin <sergio.martin@artica.es>
* operation/agentes/gis_view.php: Fixed sql typo error
2011-07-18 Sergio Martin <sergio.martin@artica.es>
* images/sub.png

View File

@ -52,10 +52,10 @@ if (!gis_get_agent_map($agentId, "500px", "98%", true, true, $period)) {
switch ($config["dbtype"]) {
case "mysql":
$timestampLastOperation = db_get_value_sql("SELECT UNIX_TIMESTAMP();");
$timestampLastOperation = db_get_value_sql("SELECT UNIX_TIMESTAMP()");
break;
case "postgresql":
$timestampLastOperation = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
$timestampLastOperation = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP))");
break;
case "oracle":
$timestampLastOperation = db_get_value_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) from dual");