Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not a Bug
-
10.2.8
-
None
-
Windows
Description
When using CONNECT Engine and Table Type ODBC, when using a HAVING clause for filtering data, wrong results are returned if no WHERE and GROUP BY clause is used.
For example:
SELECT
|
*
|
FROM
|
MyTable
|
HAVING
|
MyColumn <> 'MyValue' OR MyColumn IS NULL |
Does not perform a correct filtering. I think that the correct MariaDB behaviour with the HAVING clause shall be that a "local" copy of the table is done in MariaDB Server, bringing the table through ODBC connection, and then filter it in the "local" server itself.
Thank you,
Juan
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | Storage Engine - Connect [ 10128 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Assignee | Olivier Bertrand [ bertrandop ] |
issue.field.resolutiondate | 2017-12-03 21:12:41.0 | 2017-12-03 21:12:41.978 |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Not a Bug [ 6 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 83793 ] | MariaDB v4 [ 153184 ] |
Can you elaborate? Trying to execute:
select * from oremployees where salary > 10000 and commission_pct is null;
select * from oremployees having salary > 10000 and commission_pct is null;
on the sample employees table of Oracle, I get the same result.
So to try reproduce the bug I should have:
Thanks.