[MDEV-12489] The select stmt may fail due to "having clause is ambiguous" unexpected Created: 2017-04-12 Updated: 2017-07-12 Resolved: 2017-07-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.1.21, 10.2 |
| Fix Version/s: | 10.1.26, 5.5.57, 10.0.32, 10.2.8 |
| Type: | Bug | Priority: | Critical |
| Reporter: | dennis | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
ubuntu 14.04 |
||
| Description |
|
For mariadb 10.1.21 Create two tables for test:
Then test the following sqls:
Why the sql1 and sql2 can pass, but the sql3 fail due to "having clause is ambiguous"? |
| Comments |
| Comment by Alice Sherepa [ 2017-04-16 ] | ||||||||||||||
|
I can repeat the problem in 10.1.22 and 10.0.30
| ||||||||||||||
| Comment by Alice Sherepa [ 2017-04-16 ] | ||||||||||||||
|
Problem doesn't occur in mysql 5.7.18 and was introduced in 10.0.29 as indicated below
| ||||||||||||||
| Comment by Elena Stepanova [ 2017-05-01 ] | ||||||||||||||
|
The change was introduced in 5.5 by this commit:
| ||||||||||||||
| Comment by Oleksandr Byelkin [ 2017-07-12 ] | ||||||||||||||
|
OK to push! |