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:
parent
f53c9eef0f
commit
8ae1be96ef
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue