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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2f2347e5
Commit
2f2347e5
authored
Aug 23, 2005
by
timour@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case for BUG#10972 - Natural join of view and underlying table gives wrong result.
The bug itself is fixed by WL#2486.
parent
f5655423
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
mysql-test/r/select.result
mysql-test/r/select.result
+11
-0
mysql-test/t/select.test
mysql-test/t/select.test
+12
-0
No files found.
mysql-test/r/select.result
View file @
2f2347e5
...
...
@@ -2818,3 +2818,14 @@ create table t2 (pk int primary key, c int);
select pk from t1 inner join t2 using (pk);
pk
drop table t1,t2;
create table t1 (s1 int, s2 char(5), s3 decimal(10));
create view v1 as select s1, s2, 'x' as s3 from t1;
select * from t1 natural join v1;
s1 s2 s3
insert into t1 values (1,'x',5);
select * from t1 natural join v1;
s1 s2 s3
Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'x'
drop table t1;
drop view v1;
mysql-test/t/select.test
View file @
2f2347e5
...
...
@@ -2394,3 +2394,15 @@ create table t1 (pk int primary key, b int);
create
table
t2
(
pk
int
primary
key
,
c
int
);
select
pk
from
t1
inner
join
t2
using
(
pk
);
drop
table
t1
,
t2
;
#
# Bug #10972 Natural join of view and underlying table gives wrong result
#
create
table
t1
(
s1
int
,
s2
char
(
5
),
s3
decimal
(
10
));
create
view
v1
as
select
s1
,
s2
,
'x'
as
s3
from
t1
;
select
*
from
t1
natural
join
v1
;
insert
into
t1
values
(
1
,
'x'
,
5
);
select
*
from
t1
natural
join
v1
;
drop
table
t1
;
drop
view
v1
;
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