[MDEV-12385] Bundling insert with group concat with create statement for memory table fails to cast properly Created: 2017-03-28 Updated: 2017-05-01 Resolved: 2017-05-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary, Storage Engine - Memory |
| Affects Version/s: | 10.0.30 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Mark Punak | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7.1 |
||
| Description |
|
The following Create/Insert statement fails with Error Code 1163
The following code, succeeds
It appears the bundled statement is ignoring the DDL of the table creation statement, or failing to cast to varchar(45) |
| Comments |
| Comment by Elena Stepanova [ 2017-05-01 ] | |||||||||||||||||||||||||||
|
If you want the result of GROUP_CONCAT to end up in the column GROUPING, you should name the result as such. Otherwise your DDL attempts to create two columns, one `GROUPING` varchar(45) and another one which is the result of GROUPING. To see how it works, consider a much simpler example:
|