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
ed6c4ec9
Commit
ed6c4ec9
authored
Feb 17, 2005
by
svoj@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/svoj/devel/mysql/mysql-4.1
parents
01180054
34911229
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/r/variables.result
mysql-test/r/variables.result
+5
-0
mysql-test/t/variables.test
mysql-test/t/variables.test
+8
-0
sql/set_var.cc
sql/set_var.cc
+6
-0
sql/set_var.h
sql/set_var.h
+1
-0
No files found.
mysql-test/r/variables.result
View file @
ed6c4ec9
...
...
@@ -482,3 +482,8 @@ SET GLOBAL MYISAM_DATA_POINTER_SIZE= 8;
SHOW VARIABLES LIKE 'MYISAM_DATA_POINTER_SIZE';
Variable_name Value
myisam_data_pointer_size 8
SET GLOBAL table_cache=-1;
SHOW VARIABLES LIKE 'table_cache';
Variable_name Value
table_cache 1
SET GLOBAL table_cache=DEFAULT;
mysql-test/t/variables.test
View file @
ed6c4ec9
...
...
@@ -362,3 +362,11 @@ drop table t1;
SET
GLOBAL
MYISAM_DATA_POINTER_SIZE
=
8
;
SHOW
VARIABLES
LIKE
'MYISAM_DATA_POINTER_SIZE'
;
#
# Bug #6958: negative arguments to integer options wrap around
#
SET
GLOBAL
table_cache
=-
1
;
SHOW
VARIABLES
LIKE
'table_cache'
;
SET
GLOBAL
table_cache
=
DEFAULT
;
sql/set_var.cc
View file @
ed6c4ec9
...
...
@@ -1223,6 +1223,12 @@ static void fix_server_id(THD *thd, enum_var_type type)
server_id_supplied
=
1
;
}
bool
sys_var_long_ptr
::
check
(
THD
*
thd
,
set_var
*
var
)
{
longlong
v
=
var
->
value
->
val_int
();
var
->
save_result
.
ulonglong_value
=
v
<
0
?
0
:
v
;
return
0
;
}
bool
sys_var_long_ptr
::
update
(
THD
*
thd
,
set_var
*
var
)
{
...
...
sql/set_var.h
View file @
ed6c4ec9
...
...
@@ -93,6 +93,7 @@ class sys_var_long_ptr :public sys_var
sys_var_long_ptr
(
const
char
*
name_arg
,
ulong
*
value_ptr
,
sys_after_update_func
func
)
:
sys_var
(
name_arg
,
func
),
value
(
value_ptr
)
{}
bool
check
(
THD
*
thd
,
set_var
*
var
);
bool
update
(
THD
*
thd
,
set_var
*
var
);
void
set_default
(
THD
*
thd
,
enum_var_type
type
);
SHOW_TYPE
type
()
{
return
SHOW_LONG
;
}
...
...
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