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
9de8e3b0
Commit
9de8e3b0
authored
Nov 16, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
mysql-test/r/view.result: SCCS merged mysql-test/t/view.test: SCCS merged
parents
37abfebb
0a9badec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/view.result
mysql-test/r/view.result
+8
-0
mysql-test/t/view.test
mysql-test/t/view.test
+10
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
mysql-test/r/view.result
View file @
9de8e3b0
...
...
@@ -2385,6 +2385,14 @@ show create view v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `v1` AS select 1 AS `1`
drop view v1;
create table t1 (id INT, primary key(id));
insert into t1 values (1),(2);
create view v1 as select * from t1;
explain select id from v1 order by id;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 index NULL PRIMARY 4 NULL 2 Using index
drop view v1;
drop table t1;
create table t1(f1 int, f2 int);
insert into t1 values (null, 10), (null,2);
create view v1 as select * from t1;
...
...
mysql-test/t/view.test
View file @
9de8e3b0
...
...
@@ -2254,6 +2254,16 @@ create definer = current_user sql security invoker view v1 as select 1;
show
create
view
v1
;
drop
view
v1
;
#
# Bug #14816 test_if_order_by_key() expected only Item_fields.
#
create
table
t1
(
id
INT
,
primary
key
(
id
));
insert
into
t1
values
(
1
),(
2
);
create
view
v1
as
select
*
from
t1
;
explain
select
id
from
v1
order
by
id
;
drop
view
v1
;
drop
table
t1
;
#
# Bug #14850 Item_ref's values wasn't updated
#
...
...
sql/sql_select.cc
View file @
9de8e3b0
...
...
@@ -10988,7 +10988,7 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx,
for
(;
order
;
order
=
order
->
next
,
const_key_parts
>>=
1
)
{
Field
*
field
=
((
Item_field
*
)
(
*
order
->
item
))
->
field
;
Field
*
field
=
((
Item_field
*
)
(
*
order
->
item
)
->
real_item
()
)
->
field
;
int
flag
;
/*
...
...
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