2011-06-15 Ramon Novoa <rnovoa@artica.es>

* operation/events/events_list.php: Merged from trunk. Do not show
	  repeated comments when grouping events. Raise the maximum permitted
	  result length for GROUP_CONCAT.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4452 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-06-15 09:38:36 +00:00
parent d7e2b902ee
commit 59125d7de1
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-06-15 Ramon Novoa <rnovoa@artica.es>
* operation/events/events_list.php: Merged from trunk. Do not show
repeated comments when grouping events. Raise the maximum permitted
result length for GROUP_CONCAT.
2011-06-15 Ramon Novoa <rnovoa@artica.es>
* pandoradb.oracle.sql: Removed unneeded code.

View File

@ -270,6 +270,7 @@ if ($group_rep == 0) {
else {
switch ($config["dbtype"]) {
case "mysql":
process_sql ('SET group_concat_max_len = 9999999');
$sql = "SELECT *, GROUP_CONCAT(DISTINCT user_comment SEPARATOR '') AS user_comment,
MAX(estado) AS estado, COUNT(*) AS event_rep, MAX(utimestamp) AS timestamp_rep
FROM tevento