[MDEV-4292] parse error when selecting on views using dynamic column Created: 2013-03-18 Updated: 2013-03-27 Resolved: 2013-03-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.1, 5.5.29, 5.5.30, 5.3.12 |
| Fix Version/s: | 10.0.2, 5.5.31, 5.3.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | VAROQUI Stephane | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
The following query is fine :
but
Here is an simplified version of the tables in the test :
|
| Comments |
| Comment by VAROQUI Stephane [ 2013-03-18 ] |
|
sample data to insert into Dynamic column table schema |
| Comment by Oleksandr Byelkin [ 2013-03-19 ] |
|
problem is in incorrect column_get print method. |
| Comment by Oleksandr Byelkin [ 2013-03-19 ] |
|
New test suite: create view v1 as select i, column_get(d, 1 as binary) as a from t1; create view v1 as select i, column_get(d, 1 as int) as a from t1; create view v1 as select i, column_get(d, 1 as unsigned int) as a from t1; create view v1 as select i, column_get(d, 1 as date) as a from t1; create view v1 as select i, column_get(d, 1 as time) as a from t1; create view v1 as select i, column_get(d, 1 as datetime) as a from t1; create view v1 as select i, column_get(d, 1 as decimal) as a from t1; create view v1 as select i, column_get(d, 1 as double) as a from t1; create view v1 as select i, column_get(d, 1 as char) as a from t1; drop table t1; |
| Comment by Oleksandr Byelkin [ 2013-03-19 ] |
|
Committed for review. |
| Comment by Oleksandr Byelkin [ 2013-03-26 ] |
|
pushed |