From 39c1c5b8f6237adb0db5429121606ebe408553ab Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Fri, 1 Apr 2011 08:34:34 +0000 Subject: [PATCH] 2011-04-01 Juan Manuel Ramon * operation/gis_maps/render_view.php: Fixed bad sql query sintax. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4159 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/gis_maps/render_view.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d3adb2812d..60bd546527 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-04-01 Juan Manuel Ramon + + * operation/gis_maps/render_view.php: Fixed bad sql query sintax. + 2011-03-31 Miguel de Dios * include/functions_graph.php, operation/agentes/stat_win.php: changes for diff --git a/pandora_console/operation/gis_maps/render_view.php b/pandora_console/operation/gis_maps/render_view.php index 60250e9f65..b640133429 100644 --- a/pandora_console/operation/gis_maps/render_view.php +++ b/pandora_console/operation/gis_maps/render_view.php @@ -174,10 +174,10 @@ if ($layers != false) { switch ($config["dbtype"]) { case "mysql": - $timestampLastOperation = get_db_value_sql("SELECT UNIX_TIMESTAMP();"); + $timestampLastOperation = get_db_value_sql("SELECT UNIX_TIMESTAMP()"); break; case "postgresql": - $timestampLastOperation = get_db_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));"); + $timestampLastOperation = get_db_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP))"); break; }