[MDEV-14426] Assertion in Diagnostics_area::set_error_status when using a bad datetime with PS and SP Created: 2017-11-17 Updated: 2017-12-22 Resolved: 2017-12-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements, Stored routines, Temporal Types |
| Affects Version/s: | 10.2, 10.3 |
| Fix Version/s: | 10.2.12, 10.3.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 10.2.12 |
| Description |
|
This script crashes the server in debug builds:
Note, if I slightly rewrite the script not to use dynamic SQL, the crash disappears and a correct error is returned instead:
|
| Comments |
| Comment by Alexander Barkov [ 2017-12-21 ] | ||||||||||||||
|
It also crashes with PREPARE followed by EXECUTE instead of EXECUTE IMMEDIATE:
|