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
10a4ed0e
Commit
10a4ed0e
authored
Mar 20, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
042af556
58199639
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
11 deletions
+23
-11
mysql-test/r/variables.result
mysql-test/r/variables.result
+2
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+2
-2
mysql-test/t/variables.test
mysql-test/t/variables.test
+3
-0
sql/mysqld.cc
sql/mysqld.cc
+4
-0
sql/set_var.cc
sql/set_var.cc
+9
-7
sql/set_var.h
sql/set_var.h
+3
-2
No files found.
mysql-test/r/variables.result
View file @
10a4ed0e
...
...
@@ -382,6 +382,8 @@ select 1;
1
select @@session.key_buffer_size;
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable
set ft_boolean_syntax = @@init_connect;
ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
select @@global.max_user_connections,@@local.max_join_size;
@@global.max_user_connections @@session.max_join_size
100 200
...
...
mysql-test/t/ctype_utf8.test
View file @
10a4ed0e
...
...
@@ -54,7 +54,7 @@ select * from t1;
drop
table
t1
;
#
# Bug #2366 Wrong utf8 behaviour when data is tr
a
ncated
# Bug #2366 Wrong utf8 behaviour when data is tr
u
ncated
#
set
names
koi8r
;
create
table
t1
(
s1
char
(
1
)
character
set
utf8
);
...
...
@@ -101,7 +101,7 @@ drop table t1;
#
# Bug 2699
# UTF8 breaks primary keys for cols >
85
characters
# UTF8 breaks primary keys for cols >
333
characters
#
--
error
1071
create
table
t1
(
a
text
character
set
utf8
,
primary
key
(
a
(
360
)));
...
...
mysql-test/t/variables.test
View file @
10a4ed0e
...
...
@@ -270,6 +270,9 @@ select 1;
--
error
1238
select
@@
session
.
key_buffer_size
;
--
error
1229
set
ft_boolean_syntax
=
@@
init_connect
;
#
# swap
#
...
...
sql/mysqld.cc
View file @
10a4ed0e
...
...
@@ -2189,10 +2189,14 @@ static int init_common_variables(const char *conf_file_name, int argc,
sys_init_connect
.
value_length
=
0
;
if
((
sys_init_connect
.
value
=
opt_init_connect
))
sys_init_connect
.
value_length
=
strlen
(
opt_init_connect
);
else
sys_init_connect
.
value
=
my_strdup
(
""
,
MYF
(
0
));
sys_init_slave
.
value_length
=
0
;
if
((
sys_init_slave
.
value
=
opt_init_slave
))
sys_init_slave
.
value_length
=
strlen
(
opt_init_slave
);
else
sys_init_slave
.
value
=
my_strdup
(
""
,
MYF
(
0
));
if
(
use_temp_pool
&&
bitmap_init
(
&
temp_pool
,
0
,
1024
,
1
))
return
1
;
...
...
sql/set_var.cc
View file @
10a4ed0e
...
...
@@ -121,7 +121,8 @@ sys_var_character_set_server sys_character_set_server("character_set_server");
sys_var_str
sys_charset_system
(
"character_set_system"
,
sys_check_charset
,
sys_update_charset
,
sys_set_default_charset
);
sys_set_default_charset
,
(
char
*
)
my_charset_utf8_general_ci
.
name
);
sys_var_character_set_database
sys_character_set_database
(
"character_set_database"
);
sys_var_character_set_client
sys_character_set_client
(
"character_set_client"
);
sys_var_character_set_connection
sys_character_set_connection
(
"character_set_connection"
);
...
...
@@ -150,13 +151,14 @@ sys_var_long_ptr sys_flush_time("flush_time", &flush_time);
sys_var_str
sys_ft_boolean_syntax
(
"ft_boolean_syntax"
,
sys_check_ftb_syntax
,
sys_update_ftb_syntax
,
sys_default_ftb_syntax
);
sys_default_ftb_syntax
,
ft_boolean_syntax
);
sys_var_str
sys_init_connect
(
"init_connect"
,
0
,
sys_update_init_connect
,
sys_default_init_connect
);
sys_default_init_connect
,
0
);
sys_var_str
sys_init_slave
(
"init_slave"
,
0
,
sys_update_init_slave
,
sys_default_init_slave
);
sys_default_init_slave
,
0
);
sys_var_thd_ulong
sys_interactive_timeout
(
"interactive_timeout"
,
&
SV
::
net_interactive_timeout
);
sys_var_thd_ulong
sys_join_buffer_size
(
"join_buffer_size"
,
...
...
@@ -665,11 +667,11 @@ struct show_var_st init_vars[]= {
{
sys_join_buffer_size
.
name
,
(
char
*
)
&
sys_join_buffer_size
,
SHOW_SYS
},
{
sys_key_buffer_size
.
name
,
(
char
*
)
&
sys_key_buffer_size
,
SHOW_SYS
},
{
sys_key_cache_age_threshold
.
name
,
(
char
*
)
&
sys_key_cache_age_threshold
,
SHOW_SYS
},
SHOW_SYS
},
{
sys_key_cache_block_size
.
name
,
(
char
*
)
&
sys_key_cache_block_size
,
SHOW_SYS
},
SHOW_SYS
},
{
sys_key_cache_division_limit
.
name
,
(
char
*
)
&
sys_key_cache_division_limit
,
SHOW_SYS
},
SHOW_SYS
},
{
"language"
,
language
,
SHOW_CHAR
},
{
"large_files_support"
,
(
char
*
)
&
opt_large_files
,
SHOW_BOOL
},
{
sys_license
.
name
,
(
char
*
)
&
sys_license
,
SHOW_SYS
},
...
...
sql/set_var.h
View file @
10a4ed0e
...
...
@@ -139,8 +139,9 @@ class sys_var_str :public sys_var
sys_var_str
(
const
char
*
name_arg
,
sys_check_func
check_func_arg
,
sys_update_func
update_func_arg
,
sys_set_default_func
set_default_func_arg
)
:
sys_var
(
name_arg
),
check_func
(
check_func_arg
),
sys_set_default_func
set_default_func_arg
,
char
*
value_arg
)
:
sys_var
(
name_arg
),
check_func
(
check_func_arg
),
value
(
value_arg
),
update_func
(
update_func_arg
),
set_default_func
(
set_default_func_arg
)
{}
bool
check
(
THD
*
thd
,
set_var
*
var
);
...
...
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