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
6e817c8d
Commit
6e817c8d
authored
Aug 14, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/50-bug28804
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb
parents
52a014c7
6656d39c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
17 deletions
+9
-17
mysql-test/r/ndb_bug26793.result
mysql-test/r/ndb_bug26793.result
+1
-6
mysql-test/t/ndb_bug26793.test
mysql-test/t/ndb_bug26793.test
+8
-11
No files found.
mysql-test/r/ndb_bug26793.result
View file @
6e817c8d
...
...
@@ -3,11 +3,6 @@ CREATE TABLE `test` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`t` VARCHAR( 10 ) NOT NULL
) ENGINE = ndbcluster;
create table test.db_temp as select * from mysql.db where user='';
delete from mysql.db where user='';
flush privileges;
GRANT USAGE ON *.* TO user1@localhost IDENTIFIED BY 'pass';
DROP TABLE `test`.`test`;
insert into mysql.db select * from test.db_temp;
drop table db_temp;
flush privileges;
drop user user1@localhost;
mysql-test/t/ndb_bug26793.test
View file @
6e817c8d
...
...
@@ -9,15 +9,12 @@ CREATE TABLE `test` (
`t`
VARCHAR
(
10
)
NOT
NULL
)
ENGINE
=
ndbcluster
;
create
table
test
.
db_temp
as
select
*
from
mysql
.
db
where
user
=
''
;
delete
from
mysql
.
db
where
user
=
''
;
flush
privileges
;
# Add user1@localhost with a specific password
# and connect as that user
GRANT
USAGE
ON
*.*
TO
user1
@
localhost
IDENTIFIED
BY
'pass'
;
connect
(
user1
,
localhost
,
user1
,
pass
,
*
NO
-
ONE
*
);
# Run the query 100 times
disable_query_log
;
disable_result_log
;
let
$i
=
100
;
...
...
@@ -29,10 +26,10 @@ dec $i;
enable_query_log
;
enable_result_log
;
connect
(
root
,
localhost
,
root
,,
test
);
connection
root
;
disconnect
user1
;
# Switch back to the default connection and cleanup
connection
default
;
DROP
TABLE
`test`
.
`test`
;
insert
into
mysql
.
db
select
*
from
test
.
db_temp
;
drop
table
db_temp
;
flush
privileges
;
drop
user
user1
@
localhost
;
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