Commit 0385d95
committed
Bug#35323398: Assertion 'scale >= 0 && precision > 0 and
scale <= precision' failed
The problem is with the resolve_type_inner() function for class
Item_func_nullif. If the original data type is a temporal type,
the type is adjusted to a string type. However, the result type
is not adjusted accordingly, which may cause later inconsistencies.
Fixed by setting result type to STRING_RESULT.
Change-Id: I91b43741ced9c0253b9e337e7170d8c93ac9c8f41 parent 4185c0d commit 0385d95
3 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3534 | 3534 | | |
3535 | 3535 | | |
3536 | 3536 | | |
| 3537 | + | |
3537 | 3538 | | |
3538 | 3539 | | |
3539 | 3540 | | |
| |||
0 commit comments