#158133 by killes: do not break HAVING SQL constructs in SQL rewrites
parent
f5ea36bb4d
commit
638e39ced6
|
@ -269,6 +269,9 @@ function db_rewrite_sql($query, $primary_table = 'n', $primary_field = 'nid', $
|
|||
if (strpos($query, 'GROUP')) {
|
||||
$replace = 'GROUP';
|
||||
}
|
||||
elseif (strpos($query, 'HAVING')) {
|
||||
$replace = 'HAVING';
|
||||
}
|
||||
elseif (strpos($query, 'ORDER')) {
|
||||
$replace = 'ORDER';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue