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
4f81309e
Commit
4f81309e
authored
Oct 09, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-error-5.0
parents
79f1eeb8
13ec4317
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
mysql-test/r/view.result
mysql-test/r/view.result
+12
-0
mysql-test/t/view.test
mysql-test/t/view.test
+8
-0
sql/sql_update.cc
sql/sql_update.cc
+2
-3
No files found.
mysql-test/r/view.result
View file @
4f81309e
...
...
@@ -1329,6 +1329,18 @@ update v1,t1 set v1.s1='c' where t1.s1=v1.s1;
select * from v1;
s1
c
prepare stmt1 from "update v1,t1 set v1.s1=? where t1.s1=v1.s1";
set @arg='d';
execute stmt1 using @arg;
select * from v1;
s1
d
set @arg='e';
execute stmt1 using @arg;
select * from v1;
s1
e
deallocate prepare stmt1;
drop view v1;
drop table t1;
create table t1 (a int);
...
...
mysql-test/t/view.test
View file @
4f81309e
...
...
@@ -1297,6 +1297,14 @@ update v1 set s1='b';
select
*
from
v1
;
update
v1
,
t1
set
v1
.
s1
=
'c'
where
t1
.
s1
=
v1
.
s1
;
select
*
from
v1
;
prepare
stmt1
from
"update v1,t1 set v1.s1=? where t1.s1=v1.s1"
;
set
@
arg
=
'd'
;
execute
stmt1
using
@
arg
;
select
*
from
v1
;
set
@
arg
=
'e'
;
execute
stmt1
using
@
arg
;
select
*
from
v1
;
deallocate
prepare
stmt1
;
drop
view
v1
;
drop
table
t1
;
...
...
sql/sql_update.cc
View file @
4f81309e
...
...
@@ -80,9 +80,8 @@ static bool check_fields(THD *thd, List<Item> &items)
we make temporary copy of Item_field, to avoid influence of changing
result_field on Item_ref which refer on this field
*/
field
=
new
Item_field
(
thd
,
field
);
it
.
replace
(
field
);
((
Item_field
*
)
item
)
->
register_item_tree_changing
(
it
.
ref
());
it
.
replace
(
new
Item_field
(
thd
,
field
));
field
->
register_item_tree_changing
(
it
.
ref
());
}
return
FALSE
;
}
...
...
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