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
2d2f857f
Commit
2d2f857f
authored
Oct 05, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for --embedded
parent
e59d080f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
76 deletions
+79
-76
mysql-test/suite/sql_sequence/alter.result
mysql-test/suite/sql_sequence/alter.result
+0
-38
mysql-test/suite/sql_sequence/alter.test
mysql-test/suite/sql_sequence/alter.test
+0
-34
mysql-test/suite/sql_sequence/alter_notembedded.result
mysql-test/suite/sql_sequence/alter_notembedded.result
+38
-0
mysql-test/suite/sql_sequence/alter_notembedded.test
mysql-test/suite/sql_sequence/alter_notembedded.test
+37
-0
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
+4
-4
No files found.
mysql-test/suite/sql_sequence/alter.result
View file @
2d2f857f
...
...
@@ -238,41 +238,3 @@ select next value for t1;
next value for t1
90
drop sequence t1;
GRANT
create database s_db;
create sequence s_db.s1;
grant select on s_db.s1 to normal_1@'%' identified by 'pass';
connect m_normal_1, localhost, normal_1, pass, s_db;
select * from s1;
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
1 1 9223372036854775806 1 1 1000 0 0
select nextval(s1);
ERROR 42000: INSERT command denied to user 'normal_1'@'localhost' for table 's1'
show create sequence s1;
Table Create Table
s1 CREATE SEQUENCE `s1` start with 1 minvalue 1 maxvalue 9223372036854775806 increment by 1 cache 1000 nocycle ENGINE=MyISAM
alter sequence s1 restart 50;
ERROR 42000: ALTER command denied to user 'normal_1'@'localhost' for table 's1'
connection default;
grant insert on s_db.s1 to normal_1@'%';
connection m_normal_1;
select nextval(s1);
nextval(s1)
1
alter sequence s1 restart 50;
ERROR 42000: ALTER command denied to user 'normal_1'@'localhost' for table 's1'
connection default;
grant alter on s_db.s1 to normal_1@'%';
connection m_normal_1;
alter sequence s1 restart 50;
select nextval(s1);
nextval(s1)
50
drop sequence s1;
ERROR 42000: DROP command denied to user 'normal_1'@'localhost' for table 's1'
connection default;
disconnect m_normal_1;
drop database s_db;
drop user normal_1@'%';
mysql-test/suite/sql_sequence/alter.test
View file @
2d2f857f
...
...
@@ -139,37 +139,3 @@ select next value for t1;
alter
sequence
t1
restart
with
90
;
select
next
value
for
t1
;
drop
sequence
t1
;
--
echo
--
echo
GRANT
--
echo
create
database
s_db
;
create
sequence
s_db
.
s1
;
grant
select
on
s_db
.
s1
to
normal_1
@
'%'
identified
by
'pass'
;
connect
(
m_normal_1
,
localhost
,
normal_1
,
pass
,
s_db
);
select
*
from
s1
;
--
error
ER_TABLEACCESS_DENIED_ERROR
select
nextval
(
s1
);
show
create
sequence
s1
;
--
error
ER_TABLEACCESS_DENIED_ERROR
alter
sequence
s1
restart
50
;
connection
default
;
grant
insert
on
s_db
.
s1
to
normal_1
@
'%'
;
connection
m_normal_1
;
select
nextval
(
s1
);
--
error
ER_TABLEACCESS_DENIED_ERROR
alter
sequence
s1
restart
50
;
connection
default
;
grant
alter
on
s_db
.
s1
to
normal_1
@
'%'
;
connection
m_normal_1
;
alter
sequence
s1
restart
50
;
select
nextval
(
s1
);
--
error
ER_TABLEACCESS_DENIED_ERROR
drop
sequence
s1
;
connection
default
;
disconnect
m_normal_1
;
drop
database
s_db
;
drop
user
normal_1
@
'%'
;
mysql-test/suite/sql_sequence/alter_notembedded.result
0 → 100644
View file @
2d2f857f
#
# GRANT
#
create database s_db;
create sequence s_db.s1;
grant select on s_db.s1 to normal_1@'%' identified by 'pass';
connect m_normal_1, localhost, normal_1, pass, s_db;
select * from s1;
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
1 1 9223372036854775806 1 1 1000 0 0
select nextval(s1);
ERROR 42000: INSERT command denied to user 'normal_1'@'localhost' for table 's1'
show create sequence s1;
Table Create Table
s1 CREATE SEQUENCE `s1` start with 1 minvalue 1 maxvalue 9223372036854775806 increment by 1 cache 1000 nocycle ENGINE=MyISAM
alter sequence s1 restart 50;
ERROR 42000: ALTER command denied to user 'normal_1'@'localhost' for table 's1'
connection default;
grant insert on s_db.s1 to normal_1@'%';
connection m_normal_1;
select nextval(s1);
nextval(s1)
1
alter sequence s1 restart 50;
ERROR 42000: ALTER command denied to user 'normal_1'@'localhost' for table 's1'
connection default;
grant alter on s_db.s1 to normal_1@'%';
connection m_normal_1;
alter sequence s1 restart 50;
select nextval(s1);
nextval(s1)
50
drop sequence s1;
ERROR 42000: DROP command denied to user 'normal_1'@'localhost' for table 's1'
connection default;
disconnect m_normal_1;
drop database s_db;
drop user normal_1@'%';
mysql-test/suite/sql_sequence/alter_notembedded.test
0 → 100644
View file @
2d2f857f
--
source
include
/
have_sequence
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
not_embedded
.
inc
--
echo
#
--
echo
# GRANT
--
echo
#
create
database
s_db
;
create
sequence
s_db
.
s1
;
grant
select
on
s_db
.
s1
to
normal_1
@
'%'
identified
by
'pass'
;
connect
(
m_normal_1
,
localhost
,
normal_1
,
pass
,
s_db
);
select
*
from
s1
;
--
error
ER_TABLEACCESS_DENIED_ERROR
select
nextval
(
s1
);
show
create
sequence
s1
;
--
error
ER_TABLEACCESS_DENIED_ERROR
alter
sequence
s1
restart
50
;
connection
default
;
grant
insert
on
s_db
.
s1
to
normal_1
@
'%'
;
connection
m_normal_1
;
select
nextval
(
s1
);
--
error
ER_TABLEACCESS_DENIED_ERROR
alter
sequence
s1
restart
50
;
connection
default
;
grant
alter
on
s_db
.
s1
to
normal_1
@
'%'
;
connection
m_normal_1
;
alter
sequence
s1
restart
50
;
select
nextval
(
s1
);
--
error
ER_TABLEACCESS_DENIED_ERROR
drop
sequence
s1
;
connection
default
;
disconnect
m_normal_1
;
drop
database
s_db
;
drop
user
normal_1
@
'%'
;
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
View file @
2d2f857f
...
...
@@ -1845,17 +1845,17 @@ ENUM_VALUE_LIST admin,call,slave,sp
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME LOG_SLOW_FILTER
SESSION_VALUE admin,filesort,filesort_on_disk,filsort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
GLOBAL_VALUE admin,filesort,filesort_on_disk,filsort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
SESSION_VALUE admin,filesort,filesort_on_disk,fil
e
sort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
GLOBAL_VALUE admin,filesort,filesort_on_disk,fil
e
sort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE admin,filesort,filesort_on_disk,filsort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
DEFAULT_VALUE admin,filesort,filesort_on_disk,fil
e
sort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
VARIABLE_SCOPE SESSION
VARIABLE_TYPE SET
VARIABLE_COMMENT Log only certain types of queries to the slow log. If variable empty alll kind of queries are logged. All types are bound by slow_query_time, except 'not_using_index' which is always logged if enabled
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST admin,filesort,filesort_on_disk,filsort_priority_queue,full_join,full_scan,not_using_index,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
ENUM_VALUE_LIST admin,filesort,filesort_on_disk,fil
e
sort_priority_queue,full_join,full_scan,not_using_index,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME LOG_SLOW_RATE_LIMIT
...
...
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