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
349c39ce
Commit
349c39ce
authored
Mar 09, 2006
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge moonbone.local:/work/17726-bug-5.0-mysql
into moonbone.local:/work/17726-bug-5.1-new-mysql
parents
c5895a96
3d37ec6b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
mysql-test/r/view.result
mysql-test/r/view.result
+14
-0
mysql-test/t/view.test
mysql-test/t/view.test
+14
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-1
No files found.
mysql-test/r/view.result
View file @
349c39ce
...
...
@@ -2539,3 +2539,17 @@ drop view v1;
//
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_no_cache `test`.`t1`.`id` AS `id` from `t1`
create table t1(f1 int, f2 int);
create view v1 as select ta.f1 as a, tb.f1 as b from t1 ta, t1 tb where ta.f1=tb
.f1 and ta.f2=tb.f2;
insert into t1 values(1,1),(2,2);
create view v2 as select * from v1 where a > 1 with check option;
select * from v2;
a b
2 2
update v2 set b=3 where a=2;
select * from v2;
a b
3 3
drop view v2, v1;
drop table t1;
mysql-test/t/view.test
View file @
349c39ce
...
...
@@ -2390,3 +2390,17 @@ show create view v1;
drop
view
v1
;
//
delimiter
;
//
#
# Bug#17726 Not checked empty list caused endless loop
#
create
table
t1
(
f1
int
,
f2
int
);
create
view
v1
as
select
ta
.
f1
as
a
,
tb
.
f1
as
b
from
t1
ta
,
t1
tb
where
ta
.
f1
=
tb
.
f1
and
ta
.
f2
=
tb
.
f2
;
insert
into
t1
values
(
1
,
1
),(
2
,
2
);
create
view
v2
as
select
*
from
v1
where
a
>
1
with
check
option
;
select
*
from
v2
;
update
v2
set
b
=
3
where
a
=
2
;
select
*
from
v2
;
drop
view
v2
,
v1
;
drop
table
t1
;
sql/item_cmpfunc.cc
View file @
349c39ce
...
...
@@ -2547,7 +2547,8 @@ Item_cond::fix_fields(THD *thd, Item **ref)
{
table_map
tmp_table_map
;
while
(
item
->
type
()
==
Item
::
COND_ITEM
&&
((
Item_cond
*
)
item
)
->
functype
()
==
functype
())
((
Item_cond
*
)
item
)
->
functype
()
==
functype
()
&&
!
((
Item_cond
*
)
item
)
->
list
.
is_empty
())
{
// Identical function
li
.
replace
(((
Item_cond
*
)
item
)
->
list
);
((
Item_cond
*
)
item
)
->
list
.
empty
();
...
...
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