Commit 95825fa
committed
Bug#21682356: STOP INJECTING DATA ITEMS IN AN ERROR MESSAGE
GENERATED BY THE EXP() FUNCTION
When generating the error message for numeric overflow, pass a flag to
Item::print() that prevents it from expanding constant expressions and
parameters to the values they evaluate to.
For consistency, also pass the flag to Item::print() when
Item_func_spatial_collection::fix_length_and_dec() generates an error
message. It doesn't make any difference at the moment, since constant
expressions haven't been evaluated yet when this function is called.1 parent 79032a7 commit 95825fa
File tree
6 files changed
+48
-21
lines changed- mysql-test/r
- sql
6 files changed
+48
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
| 635 | + | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
3456 | 3456 | | |
3457 | 3457 | | |
3458 | 3458 | | |
3459 | | - | |
| 3459 | + | |
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
| |||
6197 | 6197 | | |
6198 | 6198 | | |
6199 | 6199 | | |
6200 | | - | |
| 6200 | + | |
| 6201 | + | |
6201 | 6202 | | |
6202 | 6203 | | |
6203 | 6204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
435 | 441 | | |
436 | 442 | | |
437 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
17427 | 17427 | | |
17428 | 17428 | | |
17429 | 17429 | | |
17430 | | - | |
| 17430 | + | |
| 17431 | + | |
| 17432 | + | |
| 17433 | + | |
| 17434 | + | |
| 17435 | + | |
| 17436 | + | |
| 17437 | + | |
| 17438 | + | |
| 17439 | + | |
| 17440 | + | |
| 17441 | + | |
| 17442 | + | |
| 17443 | + | |
| 17444 | + | |
| 17445 | + | |
| 17446 | + | |
| 17447 | + | |
| 17448 | + | |
| 17449 | + | |
| 17450 | + | |
17431 | 17451 | | |
17432 | 17452 | | |
17433 | | - | |
17434 | | - | |
17435 | | - | |
| 17453 | + | |
| 17454 | + | |
| 17455 | + | |
17436 | 17456 | | |
17437 | 17457 | | |
17438 | 17458 | | |
17439 | 17459 | | |
17440 | 17460 | | |
17441 | 17461 | | |
17442 | | - | |
17443 | | - | |
| 17462 | + | |
| 17463 | + | |
17444 | 17464 | | |
17445 | 17465 | | |
17446 | | - | |
| 17466 | + | |
17447 | 17467 | | |
17448 | 17468 | | |
17449 | | - | |
| 17469 | + | |
17450 | 17470 | | |
17451 | 17471 | | |
17452 | 17472 | | |
17453 | 17473 | | |
17454 | 17474 | | |
17455 | 17475 | | |
17456 | 17476 | | |
17457 | | - | |
| 17477 | + | |
17458 | 17478 | | |
17459 | 17479 | | |
17460 | 17480 | | |
| |||
0 commit comments