Permalink
Browse files

Remove DISTINCT clause from filter_get_bug_rows query

Fixes #16259 PostgreSQL error when filtering by due_date ASC
  • Loading branch information...
1 parent 044133b commit 9c57416cc20d82cb6af1ff6852011e33f988981b @dregad dregad committed Aug 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/filter_api.php
View
@@ -2066,7 +2066,7 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p
$p_page_number = filter_valid_page_number( $p_page_number, $p_page_count );
$t_offset = filter_offset( $p_page_number, $p_per_page );
$t_query_clauses = filter_unique_query_clauses( $t_query_clauses );
- $t_select_string = "SELECT DISTINCT " . implode( ', ', $t_query_clauses['select'] );
+ $t_select_string = "SELECT " . implode( ', ', $t_query_clauses['select'] );
$t_from_string = " FROM " . implode( ', ', $t_query_clauses['from'] );
$t_order_string = " ORDER BY " . implode( ', ', $t_query_clauses['order'] );
$t_join_string = count( $t_query_clauses['join'] ) > 0 ? implode( ' ', $t_query_clauses['join'] ) : '';

0 comments on commit 9c57416

Please sign in to comment.