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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
95484f79
Commit
95484f79
authored
Jun 02, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/home/bar/mysql-4.1.sysvar
into mysql.com:/usr/home/bar/mysql-5.0
parents
9dc980b1
e6860572
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
mysql-test/r/variables.result
mysql-test/r/variables.result
+6
-0
mysql-test/t/variables.test
mysql-test/t/variables.test
+7
-0
sql/item_func.cc
sql/item_func.cc
+1
-1
sql/set_var.cc
sql/set_var.cc
+2
-1
No files found.
mysql-test/r/variables.result
View file @
95484f79
...
@@ -236,6 +236,12 @@ query_prealloc_size 8192
...
@@ -236,6 +236,12 @@ query_prealloc_size 8192
range_alloc_block_size 2048
range_alloc_block_size 2048
transaction_alloc_block_size 8192
transaction_alloc_block_size 8192
transaction_prealloc_size 4096
transaction_prealloc_size 4096
SELECT @@version LIKE 'non-existent';
@@version LIKE 'non-existent'
0
SELECT @@version_compile_os LIKE 'non-existent';
@@version_compile_os LIKE 'non-existent'
0
set big_tables=OFFF;
set big_tables=OFFF;
ERROR 42000: Variable 'big_tables' can't be set to the value of 'OFFF'
ERROR 42000: Variable 'big_tables' can't be set to the value of 'OFFF'
set big_tables="OFFF";
set big_tables="OFFF";
...
...
mysql-test/t/variables.test
View file @
95484f79
...
@@ -130,6 +130,13 @@ set @@query_alloc_block_size=default, @@query_prealloc_size=default;
...
@@ -130,6 +130,13 @@ set @@query_alloc_block_size=default, @@query_prealloc_size=default;
set
transaction_alloc_block_size
=
default
,
@@
transaction_prealloc_size
=
default
;
set
transaction_alloc_block_size
=
default
,
@@
transaction_prealloc_size
=
default
;
show
variables
like
'%alloc%'
;
show
variables
like
'%alloc%'
;
#
# Bug #10904 Illegal mix of collations between
# a system variable and a constant
#
SELECT
@@
version
LIKE
'non-existent'
;
SELECT
@@
version_compile_os
LIKE
'non-existent'
;
# The following should give errors
# The following should give errors
--
error
1231
--
error
1231
...
...
sql/item_func.cc
View file @
95484f79
...
@@ -4509,7 +4509,7 @@ Item *get_system_var(THD *thd, enum_var_type var_type, LEX_STRING name,
...
@@ -4509,7 +4509,7 @@ Item *get_system_var(THD *thd, enum_var_type var_type, LEX_STRING name,
!
my_strcasecmp
(
system_charset_info
,
name
.
str
,
"VERSION"
))
!
my_strcasecmp
(
system_charset_info
,
name
.
str
,
"VERSION"
))
return
new
Item_string
(
"@@VERSION"
,
server_version
,
return
new
Item_string
(
"@@VERSION"
,
server_version
,
(
uint
)
strlen
(
server_version
),
(
uint
)
strlen
(
server_version
),
system_charset_info
);
system_charset_info
,
DERIVATION_SYSCONST
);
Item
*
item
;
Item
*
item
;
sys_var
*
var
;
sys_var
*
var
;
...
...
sql/set_var.cc
View file @
95484f79
...
@@ -1715,7 +1715,8 @@ Item *sys_var::item(THD *thd, enum_var_type var_type, LEX_STRING *base)
...
@@ -1715,7 +1715,8 @@ Item *sys_var::item(THD *thd, enum_var_type var_type, LEX_STRING *base)
Item_string
*
tmp
;
Item_string
*
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
),
system_charset_info
);
tmp
=
new
Item_string
(
str
,
strlen
(
str
),
system_charset_info
,
DERIVATION_SYSCONST
);
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
return
tmp
;
return
tmp
;
}
}
...
...
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