| Bug #34883 | ft_boolean_syntax cant be assigned from user variable to global var. | ||
|---|---|---|---|
| Submitted: | 27 Feb 2008 12:14 | Modified: | 13 Nov 10:43 |
| Reporter: | Salman Rawala | ||
| Status: | Patch pending | ||
| Category: | Server: DML | Severity: | S3 (Non-critical) |
| Version: | 5.1.23 | OS: | Any |
| Assigned to: | Sergei Golubchik | Target Version: | |
| Tags: | ft_boolean_syntax | ||
| Triage: | Triaged: D4 (Minor) | ||
[27 Feb 2008 12:14]
Salman Rawala
[27 Feb 2008 12:28]
Valeriy Kravchuk
Thank you for a bug report. Other variables, e.g. @@global.key_buffer_size, can be set this way, so it looks like inconsistency.
[27 Feb 2008 16:23]
Sergei Golubchik
The manual specifies what values are allowed for ft_boolean_syntax. Empty string is not one of them. And this has nothing to do with temporary variables.
[12 Mar 2008 12:33]
Salman Rawala
So it means that we can not assign temporary variable to ft_boolean_syntax even if the variable contains the valid value. SET @global_start_value = @@global.ft_boolean_syntax; SELECT @global_start_value; @global_start_value + -><()~*:""&| SET @@global.ft_boolean_syntax = @global_start_value; ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of '' As we can see that @global_start_value contains valid value but assigning this variable is causing the problem.
[13 Mar 2008 11:46]
Sergei Golubchik
You're right, sorry for confusion. Hint: the code uses var->value->str_value.c_ptr(), it should use var->value->val_str() for an obvious reason. this was copy-pasted all over set_var.cc, all places should be fixed.
[13 Mar 2008 22:05]
Omer BarNir
workaround: set the value of the via program code
[10 Aug 12:45]
Sergei Golubchik
will be fixed in WL#4738
