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
61e96be7
Commit
61e96be7
authored
Oct 05, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postmerge fix
parent
75730fb3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
mysql-test/r/view.result
mysql-test/r/view.result
+1
-2
mysql-test/t/view.test
mysql-test/t/view.test
+0
-1
sql/sql_insert.cc
sql/sql_insert.cc
+5
-1
No files found.
mysql-test/r/view.result
View file @
61e96be7
...
...
@@ -1424,7 +1424,6 @@ a
1
drop view v1;
drop table t1;
drop table t1,t2;
create table t1 (a int);
create table t2 (a int);
create table t3 (a int);
...
...
@@ -1541,7 +1540,7 @@ insert into v3(b) values (10);
insert into v3(a) select a from t2;
insert into v3(b) select b from t2;
Warnings:
Warning 1263
Data truncated
; NULL supplied to NOT NULL column 'a' at row 2
Warning 1263
Column set to default value
; NULL supplied to NOT NULL column 'a' at row 2
insert into v3(a) values (1) on duplicate key update a=a+10000+VALUES(a);
select * from t1;
a b
...
...
mysql-test/t/view.test
View file @
61e96be7
...
...
@@ -1387,7 +1387,6 @@ insert ignore into v1 values (1) on duplicate key update a=2;
select
*
from
t1
;
drop
view
v1
;
drop
table
t1
;
drop
table
t1
,
t2
;
#
# merge of VIEW with several tables
...
...
sql/sql_insert.cc
View file @
61e96be7
...
...
@@ -567,7 +567,11 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id)
view
->
contain_auto_increment
=
1
;
/* prepare unique test */
field
->
field
->
query_id
=
other_query_id
;
*
trans
=
field
;
// remove collation if we have it
/*
remove collation (or other transparent for update function) if we have
it
*/
trans
->
item
=
field
;
}
/* unique test */
for
(
trans
=
trans_start
;
trans
!=
trans_end
;
trans
++
)
...
...
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