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
e9379baa
Commit
e9379baa
authored
Nov 22, 2010
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assorted fixes for test failures.
parent
522d5e5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
mysql-test/suite/sys_vars/r/shared_memory_base_name_basic.result
...est/suite/sys_vars/r/shared_memory_base_name_basic.result
+5
-5
mysql-test/suite/sys_vars/t/shared_memory_base_name_basic.test
...-test/suite/sys_vars/t/shared_memory_base_name_basic.test
+5
-5
sql/sql_show.cc
sql/sql_show.cc
+4
-4
No files found.
mysql-test/suite/sys_vars/r/shared_memory_base_name_basic.result
View file @
e9379baa
select @@global.shared_memory_base_name;
@@global.shared_memory_base_name
MYSQL
TEST_VARDIR/tmp
/mysqld.1.sock
MYSQL
_TMP_DIR
/mysqld.1.sock
select @@session.shared_memory_base_name;
ERROR HY000: Variable 'shared_memory_base_name' is a GLOBAL variable
show global variables like 'shared_memory_base_name';
Variable_name Value
shared_memory_base_name MYSQL
TEST_VARDIR/tmp
/mysqld.1.sock
shared_memory_base_name MYSQL
_TMP_DIR
/mysqld.1.sock
show session variables like 'shared_memory_base_name';
Variable_name Value
shared_memory_base_name MYSQL
TEST_VARDIR/tmp
/mysqld.1.sock
shared_memory_base_name MYSQL
_TMP_DIR
/mysqld.1.sock
select * from information_schema.global_variables where variable_name='shared_memory_base_name';
VARIABLE_NAME VARIABLE_VALUE
SHARED_MEMORY_BASE_NAME MYSQL
TEST_VARDIR/tmp
/mysqld.1.sock
SHARED_MEMORY_BASE_NAME MYSQL
_TMP_DIR
/mysqld.1.sock
select * from information_schema.session_variables where variable_name='shared_memory_base_name';
VARIABLE_NAME VARIABLE_VALUE
SHARED_MEMORY_BASE_NAME MYSQL
TEST_VARDIR/tmp
/mysqld.1.sock
SHARED_MEMORY_BASE_NAME MYSQL
_TMP_DIR
/mysqld.1.sock
set global shared_memory_base_name=1;
ERROR HY000: Variable 'shared_memory_base_name' is a read only variable
set session shared_memory_base_name=1;
...
...
mysql-test/suite/sys_vars/t/shared_memory_base_name_basic.test
View file @
e9379baa
...
...
@@ -3,17 +3,17 @@
#
# only global
#
--
replace_result
$MYSQL
TEST_VARDIR
MYSQLTEST_VAR
DIR
--
replace_result
$MYSQL
_TMP_DIR
MYSQL_TMP_
DIR
select
@@
global
.
shared_memory_base_name
;
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
select
@@
session
.
shared_memory_base_name
;
--
replace_result
$MYSQL
TEST_VARDIR
MYSQLTEST_VAR
DIR
--
replace_result
$MYSQL
_TMP_DIR
MYSQL_TMP_
DIR
show
global
variables
like
'shared_memory_base_name'
;
--
replace_result
$MYSQL
TEST_VARDIR
MYSQLTEST_VAR
DIR
--
replace_result
$MYSQL
_TMP_DIR
MYSQL_TMP_
DIR
show
session
variables
like
'shared_memory_base_name'
;
--
replace_result
$MYSQL
TEST_VARDIR
MYSQLTEST_VAR
DIR
--
replace_result
$MYSQL
_TMP_DIR
MYSQL_TMP_
DIR
select
*
from
information_schema
.
global_variables
where
variable_name
=
'shared_memory_base_name'
;
--
replace_result
$MYSQL
TEST_VARDIR
MYSQLTEST_VAR
DIR
--
replace_result
$MYSQL
_TMP_DIR
MYSQL_TMP_
DIR
select
*
from
information_schema
.
session_variables
where
variable_name
=
'shared_memory_base_name'
;
#
...
...
sql/sql_show.cc
View file @
e9379baa
...
...
@@ -596,11 +596,11 @@ class Show_create_error_handler : public Internal_error_handler {
return
m_view_access_denied_message_ptr
;
}
bool
handle_condition
(
THD
*
thd
,
uint
sql_errno
,
const
char
*/
*
sqlstate
*/
,
bool
handle_condition
(
THD
*
thd
,
uint
sql_errno
,
const
char
*
/* sqlstate */
,
MYSQL_ERROR
::
enum_warning_level
level
,
const
char
*
message
,
MYSQL_ERROR
*
*/
*
cond_hdl
*/
)
const
char
*
message
,
MYSQL_ERROR
**
/* cond_hdl */
)
{
/*
/*
The handler does not handle the errors raised by itself.
At this point we know if top_view is really a view.
*/
...
...
@@ -610,7 +610,7 @@ class Show_create_error_handler : public Internal_error_handler {
m_handling
=
TRUE
;
bool
is_handled
;
switch
(
sql_errno
)
{
case
ER_TABLEACCESS_DENIED_ERROR
:
...
...
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