-
Bug
-
Resolution: Done
-
Blocker
-
10.1, 12.2, 16.0
-
None
-
Undefined
Query
select id, count(id) over () count from mytable where translate(id, '', '') = '1'
gives result:
[id, number of all rows in table]
expected result is (postgres gives this result):
[id, number of all rows satisfying the where clause]
If I put the translated column also into the count, it gives the expected result.
select id, count(translate(id, '', '')) over () count from mytable where translate(id, '', '') = '1'