sql: fix COUNT() optimization conditions
This patch fixes the conditions under which COUNT() is optimized. At some point, the conditions were broken, but since there was no other aggregate function requiring zero arguments, this problem did not change the behavior. Needed for #2579
Loading
Please register or sign in to comment