[MDEV-9576] syntax error on view with nullif and count Created: 2016-02-17 Updated: 2016-02-23 Resolved: 2016-02-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Views |
| Affects Version/s: | 10.1.11 |
| Fix Version/s: | 10.1.12 |
| Type: | Bug | Priority: | Critical |
| Reporter: | sippanson bernt | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Environment: |
windows, openbsd |
||
| Description |
|
A valid SQL query is
now if I create this as a view with
and try to look at the view I get an error
this exact same procedure works fine on mariadb 10.0.23 I can't test it on 10.1.10 since windows wont allow me to downgrade and I cant uninstall. to recreate db
Thanks! |
| Comments |
| Comment by Elena Stepanova [ 2016-02-17 ] | |||||||||
|
Thanks for the report.
The behavior changed with this commit:
Before the commit, SHOW CREATE VIEW would pass on a non-debug build; but on debug build, we wouldn't even get this far, because CREATE VIEW would cause an assertion failure. The patch made the assertion failure go away, but now SHOW CREATE fails as described. |