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
89d9766f
Commit
89d9766f
authored
Apr 29, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup
parent
5d3df761
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+1
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+1
-1
sql/sql_base.cc
sql/sql_base.cc
+2
-1
No files found.
mysql-test/r/innodb.result
View file @
89d9766f
...
...
@@ -1219,6 +1219,7 @@ parent child
1 2
1 3
2 1
drop table t1;
create table t1 (a int not null auto_increment primary key, b int, c int, key(c)) type=innodb;
create table t2 (a int not null auto_increment primary key, b int);
insert into t1 (b) values (null),(null),(null),(null),(null),(null),(null);
...
...
mysql-test/t/innodb.test
View file @
89d9766f
...
...
@@ -809,7 +809,7 @@ drop table t1,t2;
create
table
t1
(
pk
int
primary
key
,
parent
int
not
null
,
child
int
not
null
,
index
(
parent
)
)
type
=
innodb
;
insert
into
t1
values
(
1
,
0
,
4
),
(
2
,
1
,
3
),
(
3
,
2
,
1
),
(
4
,
1
,
2
);
select
distinct
parent
,
child
from
t1
order
by
parent
;
drop
table
t1
,
t2
;
drop
table
t1
;
#
# Test that MySQL priorities clustered indexes
...
...
sql/sql_base.cc
View file @
89d9766f
...
...
@@ -1984,7 +1984,8 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
(
!
db_name
||
!
strcmp
(
tables
->
db
,
db_name
))))
{
/* Ensure that we have access right to all columns */
if
(
grant_option
&&
!
thd
->
master_access
&&
if
(
grant_option
&&
!
((
thd
->
master_access
|
table
->
grant
.
privilege
)
&
table
->
grant
.
want_privilege
)
&&
check_grant_all_columns
(
thd
,
SELECT_ACL
,
table
)
)
DBUG_RETURN
(
-
1
);
Field
**
ptr
=
table
->
field
,
*
field
;
...
...
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