[MDEV-6021] CONNECT PIVOT impossible when columns contain NULL Created: 2014-04-03 Updated: 2014-04-04 Resolved: 2014-04-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.10 |
| Fix Version/s: | 10.0.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kolbe Kegel (Inactive) | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | connect-engine | ||
| Description |
|
This should work differently, or it should be documented and should give a better error message. |
| Comments |
| Comment by Elena Stepanova [ 2014-04-03 ] |
|
I think an error is kind of expected – if the contents of the column is supposed to become a name of a column, it cannot really be NULL, right? |
| Comment by Kolbe Kegel (Inactive) [ 2014-04-03 ] |
|
Sure, maybe it's expected for NULL not to work. Or maybe it should result in a column called NULL (or _NULL_) or something else, but yes I guess mostly I just wish this was caught for some reason other than the empty column name causing a problem and that a better error was generated. |
| Comment by Elena Stepanova [ 2014-04-03 ] |
|
It cannot really be called anything, because next thing we'll do is put this 'NULL' or '_NULL_' or whatever alias we chose for NULL as a string value in another row and get results mixed up. |
| Comment by Olivier Bertrand [ 2014-04-04 ] |
|
Sure enough, the PIVOT column should not contain null values. |