[MDEV-8700] Cannot use as blob in COLUMN_GET Created: 2015-08-29 Updated: 2015-09-03 Resolved: 2015-09-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Dynamic Columns |
| Affects Version/s: | 10.0.21 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Tobias Gurtzick | Assignee: | Oleksandr Byelkin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
It is not possible anymore to modify nested columns within a dynamic column. The needed "as blob" within the COLUMN_GET does now throw always errors: For example this query:
Results in:
|
| Comments |
| Comment by Elena Stepanova [ 2015-08-30 ] | |||||||||||||
|
What do you mean by "anymore" and "now"? In which version did you see it work? | |||||||||||||
| Comment by Tobias Gurtzick [ 2015-08-31 ] | |||||||||||||
|
Well I don't know in which version this has worked. But there are posts indicating that this was possible and has worked: http://dba.stackexchange.com/questions/91620/modify-a-value-inside-of-a-nested-dynamic-column This suggests that it was possible, I wonder if it is possible in any way to modify a nested column right now? | |||||||||||||
| Comment by Elena Stepanova [ 2015-09-01 ] | |||||||||||||
|
I don't think AS BLOB ever worked. Data types allowed in COLUMN_GET are explicitly listed in documentation, it's unlikely they had ever been wider. However, I will assign it to sanja, who is an expert in dynamic columns, to confirm. I can guess that serg in MDEV-7606 just gave an example of what should be simplified, without paying attention to specific data types; can't say anything about the answer in the stackoverflow article, maybe the person just pasted a wrong query (as they say, there had been a lot of trial/fails). Using nested columns is of course still possible, as documented on the same KB page, but you need to use CHAR, not BLOB.
| |||||||||||||
| Comment by Oleksandr Byelkin [ 2015-09-03 ] | |||||||||||||
|
BLOB is a field type and is not related to expressions. AS CHAR should work (it will be charset binary). Do you really faced some limitation of string expression? | |||||||||||||
| Comment by Oleksandr Byelkin [ 2015-09-03 ] | |||||||||||||
|
To make it even more clear BLOB give no advantage over CHAR when it is in expression. There both are strings. |