2011-04-01 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* 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
This commit is contained in:
juanmanuelr 2011-04-01 08:34:34 +00:00
parent c56f7439fa
commit ae9f77190c
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-04-01 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/gis_maps/render_view.php: Fixed bad sql query sintax.
2011-03-31 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php, operation/agentes/stat_win.php: changes for

View File

@ -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;
}