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
0e323e56
Commit
0e323e56
authored
Sep 02, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-4.1-clean
into mysql.com:/home/jimw/my/mysql-5.0-clean
parents
85533496
9dc0da7c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
5 deletions
+29
-5
mysql-test/r/variables.result
mysql-test/r/variables.result
+5
-0
mysql-test/t/variables.test
mysql-test/t/variables.test
+8
-0
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+6
-1
sql/set_var.cc
sql/set_var.cc
+10
-4
No files found.
mysql-test/r/variables.result
View file @
0e323e56
...
@@ -513,6 +513,11 @@ SHOW VARIABLES LIKE 'table_cache';
...
@@ -513,6 +513,11 @@ SHOW VARIABLES LIKE 'table_cache';
Variable_name Value
Variable_name Value
table_cache 1
table_cache 1
SET GLOBAL table_cache=DEFAULT;
SET GLOBAL table_cache=DEFAULT;
set character_set_results=NULL;
select ifnull(@@character_set_results,"really null");
ifnull(@@character_set_results,"really null")
really null
set names latin1;
create table t1 (a int);
create table t1 (a int);
select a into @x from t1;
select a into @x from t1;
Warnings:
Warnings:
...
...
mysql-test/t/variables.test
View file @
0e323e56
...
@@ -390,6 +390,14 @@ SET GLOBAL table_cache=-1;
...
@@ -390,6 +390,14 @@ SET GLOBAL table_cache=-1;
SHOW
VARIABLES
LIKE
'table_cache'
;
SHOW
VARIABLES
LIKE
'table_cache'
;
SET
GLOBAL
table_cache
=
DEFAULT
;
SET
GLOBAL
table_cache
=
DEFAULT
;
#
# Bugs12363: character_set_results is nullable,
# but value_ptr returns string "NULL"
#
set
character_set_results
=
NULL
;
select
ifnull
(
@@
character_set_results
,
"really null"
);
set
names
latin1
;
# End of 4.1 tests
# End of 4.1 tests
#
#
...
...
scripts/mysqld_multi.sh
View file @
0e323e56
...
@@ -412,7 +412,12 @@ sub get_mysqladmin_options
...
@@ -412,7 +412,12 @@ sub get_mysqladmin_options
$mysqladmin_found
=
0
if
(!
length
(
$mysqladmin
))
;
$mysqladmin_found
=
0
if
(!
length
(
$mysqladmin
))
;
$com
=
"
$mysqladmin
"
;
$com
=
"
$mysqladmin
"
;
$tmp
=
" -u
$opt_user
"
;
$tmp
=
" -u
$opt_user
"
;
$tmp
.
=
defined
(
$opt_password
)
?
" -p
$opt_password
"
:
""
;
if
(
defined
(
$opt_password
))
{
my
$pw
=
$opt_password
;
# Protect single quotes in password
$pw
=
~ s/
'/'
"'"
'/g;
$tmp.= " -p'
$pw
'";
}
$tmp.= $opt_tcp_ip ? " -h 127.0.0.1" : "";
$tmp.= $opt_tcp_ip ? " -h 127.0.0.1" : "";
for ($j = 0; defined($options[$j]); $j++)
for ($j = 0; defined($options[$j]); $j++)
{
{
...
...
sql/set_var.cc
View file @
0e323e56
...
@@ -1725,11 +1725,17 @@ Item *sys_var::item(THD *thd, enum_var_type var_type, LEX_STRING *base)
...
@@ -1725,11 +1725,17 @@ Item *sys_var::item(THD *thd, enum_var_type var_type, LEX_STRING *base)
return
new
Item_int
((
int32
)
*
(
my_bool
*
)
value_ptr
(
thd
,
var_type
,
base
),
1
);
return
new
Item_int
((
int32
)
*
(
my_bool
*
)
value_ptr
(
thd
,
var_type
,
base
),
1
);
case
SHOW_CHAR
:
case
SHOW_CHAR
:
{
{
Item
_string
*
tmp
;
Item
*
tmp
;
pthread_mutex_lock
(
&
LOCK_global_system_variables
);
pthread_mutex_lock
(
&
LOCK_global_system_variables
);
char
*
str
=
(
char
*
)
value_ptr
(
thd
,
var_type
,
base
);
char
*
str
=
(
char
*
)
value_ptr
(
thd
,
var_type
,
base
);
tmp
=
new
Item_string
(
str
,
strlen
(
str
),
if
(
str
)
system_charset_info
,
DERIVATION_SYSCONST
);
tmp
=
new
Item_string
(
str
,
strlen
(
str
),
system_charset_info
,
DERIVATION_SYSCONST
);
else
{
tmp
=
new
Item_null
();
tmp
->
collation
.
set
(
system_charset_info
,
DERIVATION_SYSCONST
);
}
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
return
tmp
;
return
tmp
;
}
}
...
@@ -2019,7 +2025,7 @@ byte *sys_var_character_set::value_ptr(THD *thd, enum_var_type type,
...
@@ -2019,7 +2025,7 @@ byte *sys_var_character_set::value_ptr(THD *thd, enum_var_type type,
LEX_STRING
*
base
)
LEX_STRING
*
base
)
{
{
CHARSET_INFO
*
cs
=
ci_ptr
(
thd
,
type
)[
0
];
CHARSET_INFO
*
cs
=
ci_ptr
(
thd
,
type
)[
0
];
return
cs
?
(
byte
*
)
cs
->
csname
:
(
byte
*
)
"NULL"
;
return
cs
?
(
byte
*
)
cs
->
csname
:
(
byte
*
)
NULL
;
}
}
...
...
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