[MDEV-30350] STR_TO_DATE fails to return null in procedure Created: 2023-01-05 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 10.5.18 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Anestis Fraganestis | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian 11 |
||
| Attachments: |
|
| Description |
|
Calling a simple function which uses STR_TO_DATE twice to safely return a date produces an error while the same code run as a select produces (the expected) warning.
|
| Comments |
| Comment by Sergei Golubchik [ 2023-02-03 ] | |||||||
|
as a workaround use
or remove STRICT_TRANS_TABLES from sql_mode before RETURN in any other way | |||||||
| Comment by Anestis Fraganestis [ 2023-02-03 ] | |||||||
|
@Sergei Golubchik... thanx... I will try it. |