[MDEV-23253] EMPTY_STRING_IS_NULL: error setting a not-NULL system variable to empty string Created: 2020-07-22  Updated: 2020-07-22

Status: Open
Project: MariaDB Server
Component/s: Variables
Affects Version/s: 10.3
Fix Version/s: 10.3

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-14013 sql_mode=EMPTY_STRING_IS_NULL Closed

 Description   

This script works fine:

SET sql_mode='';
SET optimizer_switch='';

Now if I change sql_mode, the statement setting optimizer_switch starts to fail:

SET sql_mode=EMPTY_STRING_IS_NULL;
SET optimizer_switch='';

ERROR 1231 (42000): Variable 'optimizer_switch' can't be set to the value of 'NULL'


Generated at Thu Feb 08 09:21:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.