CommentQuery: Add `comment_author_name' as additional query column

refs #8613
This commit is contained in:
Johannes Meyer 2015-04-09 13:06:38 +02:00
parent 8ed1c8eeb6
commit 21c76010d4
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ class CommentQuery extends IdoQuery
'comment_internal_id' => 'cm.internal_comment_id',
'comment_data' => 'cm.comment_data',
'comment_author' => 'cm.author_name COLLATE latin1_general_ci',
'comment_author_name' => 'cm.author_name',
'comment_timestamp' => 'UNIX_TIMESTAMP(cm.comment_time)',
'comment_type' => "CASE cm.entry_type WHEN 1 THEN 'comment' WHEN 2 THEN 'downtime' WHEN 3 THEN 'flapping' WHEN 4 THEN 'ack' END",
'comment_is_persistent' => 'cm.is_persistent',

View File

@ -18,6 +18,7 @@ class Comment extends DataView
'comment_internal_id',
'comment_data',
'comment_author',
'comment_author_name',
'comment_timestamp',
'comment_type',
'comment_is_persistent',