Commit 100f0c9
committed
MDEV-23388 Assertion `args[0]->decimals == 0' failed in Item_func_round::fix_arg_int
Type_handler_temporal_result::Item_func_min_max_fix_attributes() in an expression GREATEST(string,date), e.g: SELECT GREATEST('1', CAST('2020-12-12' AS DATE)); incorrectly evaluated decimals as 6 (like for DATETIME). Adding a separate virtual implementation: Type_handler_date_common::Item_func_min_max_fix_attributes() This makes the code simpler.1 parent 6a2ee9c commit 100f0c9
File tree
4 files changed
+79
-4
lines changed- mysql-test/main
- sql
4 files changed
+79
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1106 | 1136 | | |
1107 | 1137 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
752 | 774 | | |
753 | 775 | | |
754 | 776 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4120 | 4120 | | |
4121 | 4121 | | |
4122 | 4122 | | |
| 4123 | + | |
4123 | 4124 | | |
4124 | 4125 | | |
4125 | 4126 | | |
| |||
4174 | 4175 | | |
4175 | 4176 | | |
4176 | 4177 | | |
4177 | | - | |
4178 | 4178 | | |
4179 | 4179 | | |
4180 | 4180 | | |
| |||
4191 | 4191 | | |
4192 | 4192 | | |
4193 | 4193 | | |
4194 | | - | |
4195 | | - | |
4196 | | - | |
4197 | 4194 | | |
4198 | 4195 | | |
4199 | 4196 | | |
| |||
4216 | 4213 | | |
4217 | 4214 | | |
4218 | 4215 | | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
4219 | 4240 | | |
4220 | 4241 | | |
4221 | 4242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5508 | 5508 | | |
5509 | 5509 | | |
5510 | 5510 | | |
| 5511 | + | |
| 5512 | + | |
5511 | 5513 | | |
5512 | 5514 | | |
5513 | 5515 | | |
| |||
0 commit comments