Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e71b53a8
Commit
e71b53a8
authored
Oct 14, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
merge with 4.0 to get fix for SET enum_system_variable=NULL
parents
461d1627
2d3840f5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
.bzrignore
.bzrignore
+1
-0
mysql-test/r/variables.result
mysql-test/r/variables.result
+2
-0
mysql-test/t/variables.test
mysql-test/t/variables.test
+2
-0
sql/set_var.cc
sql/set_var.cc
+6
-5
No files found.
.bzrignore
View file @
e71b53a8
...
...
@@ -515,6 +515,7 @@ scripts/fill_func_tables.sql
scripts/fill_help_tables
scripts/fill_help_tables.sql
scripts/make_binary_distribution
scripts/make_sharedlib_distribution
scripts/make_win_src_distribution
scripts/msql2mysql
scripts/mysql_config
...
...
mysql-test/r/variables.result
View file @
e71b53a8
...
...
@@ -234,6 +234,8 @@ set myisam_max_sort_file_size=100;
ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
set myisam_max_extra_sort_file_size=100;
ERROR HY000: Variable 'myisam_max_extra_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
set @@SQL_WARNINGS=NULL;
ERROR HY000: Variable 'sql_warnings' can't be set to the value of 'NULL'
set autocommit=1;
set big_tables=1;
select @@autocommit, @@big_tables;
...
...
mysql-test/t/variables.test
View file @
e71b53a8
...
...
@@ -150,6 +150,8 @@ select @@global.sql_auto_is_null;
set
myisam_max_sort_file_size
=
100
;
--
error
1229
set
myisam_max_extra_sort_file_size
=
100
;
--
error
1231
set
@@
SQL_WARNINGS
=
NULL
;
# Test setting all variables
...
...
sql/set_var.cc
View file @
e71b53a8
...
...
@@ -464,9 +464,9 @@ sys_var *sys_variables[]=
&
sys_quote_show_create
,
&
sys_rand_seed1
,
&
sys_rand_seed2
,
&
sys_range_alloc_block_size
,
&
sys_read_buff_size
,
&
sys_read_rnd_buff_size
,
&
sys_range_alloc_block_size
,
#ifdef HAVE_REPLICATION
&
sys_relay_log_purge
,
#endif
...
...
@@ -657,11 +657,11 @@ struct show_var_st init_vars[]= {
{
"secure_auth"
,
(
char
*
)
&
sys_secure_auth
,
SHOW_SYS
},
#endif
/* HAVE_QUERY_CACHE */
{
sys_query_prealloc_size
.
name
,
(
char
*
)
&
sys_query_prealloc_size
,
SHOW_SYS
},
{
sys_range_alloc_block_size
.
name
,
(
char
*
)
&
sys_range_alloc_block_size
,
SHOW_SYS
},
{
sys_read_buff_size
.
name
,
(
char
*
)
&
sys_read_buff_size
,
SHOW_SYS
},
{
sys_readonly
.
name
,
(
char
*
)
&
sys_readonly
,
SHOW_SYS
},
{
sys_read_rnd_buff_size
.
name
,(
char
*
)
&
sys_read_rnd_buff_size
,
SHOW_SYS
},
{
sys_range_alloc_block_size
.
name
,
(
char
*
)
&
sys_range_alloc_block_size
,
SHOW_SYS
},
#ifdef HAVE_REPLICATION
{
sys_relay_log_purge
.
name
,
(
char
*
)
&
sys_relay_log_purge
,
SHOW_SYS
},
#endif
...
...
@@ -1107,7 +1107,8 @@ byte *sys_var_thd_bool::value_ptr(THD *thd, enum_var_type type,
bool
sys_var
::
check_enum
(
THD
*
thd
,
set_var
*
var
,
TYPELIB
*
enum_names
)
{
char
buff
[
80
],
*
value
;
char
buff
[
80
];
const
char
*
value
;
String
str
(
buff
,
sizeof
(
buff
),
system_charset_info
),
*
res
;
if
(
var
->
value
->
result_type
()
==
STRING_RESULT
)
...
...
@@ -1117,7 +1118,7 @@ bool sys_var::check_enum(THD *thd, set_var *var, TYPELIB *enum_names)
(
ulong
)
find_type
(
res
->
c_ptr
(),
enum_names
,
3
)
-
1
))
<
0
)
{
value
=
res
->
c_ptr
()
;
value
=
res
?
res
->
c_ptr
()
:
"NULL"
;
goto
err
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment