Bug #116211 | zero value of year does not display as 4 characters in union clause | ||
---|---|---|---|
Submitted: | 24 Sep 8:14 | Modified: | 24 Sep 9:00 |
Reporter: | ximin liang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 9.0.1, 8.4.2, 8.0.39 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[24 Sep 8:14]
ximin liang
[24 Sep 8:57]
ximin liang
the contents in `Suggested fix` is for sql `(select c1 from t1) union all (select c2 from t2)`
[24 Sep 9:00]
MySQL Verification Team
Hello ximin liang, Thank you for the report and test case. regards, Umesh
[26 Sep 11:19]
Roy Lyseng
Posted by developer: It is a minor problem with a reasonable workaround: select c1 from t1 union select cast(c2 as char(4)) from t2;