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
05acd51f
Commit
05acd51f
authored
Oct 05, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postmerge fix
parent
a78f817d
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 @
05acd51f
...
@@ -1424,7 +1424,6 @@ a
...
@@ -1424,7 +1424,6 @@ a
1
1
drop view v1;
drop view v1;
drop table t1;
drop table t1;
drop table t1,t2;
create table t1 (a int);
create table t1 (a int);
create table t2 (a int);
create table t2 (a int);
create table t3 (a int);
create table t3 (a int);
...
@@ -1541,7 +1540,7 @@ insert into v3(b) values (10);
...
@@ -1541,7 +1540,7 @@ insert into v3(b) values (10);
insert into v3(a) select a from t2;
insert into v3(a) select a from t2;
insert into v3(b) select b from t2;
insert into v3(b) select b from t2;
Warnings:
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);
insert into v3(a) values (1) on duplicate key update a=a+10000+VALUES(a);
select * from t1;
select * from t1;
a b
a b
...
...
mysql-test/t/view.test
View file @
05acd51f
...
@@ -1387,7 +1387,6 @@ insert ignore into v1 values (1) on duplicate key update a=2;
...
@@ -1387,7 +1387,6 @@ insert ignore into v1 values (1) on duplicate key update a=2;
select
*
from
t1
;
select
*
from
t1
;
drop
view
v1
;
drop
view
v1
;
drop
table
t1
;
drop
table
t1
;
drop
table
t1
,
t2
;
#
#
# merge of VIEW with several tables
# merge of VIEW with several tables
...
...
sql/sql_insert.cc
View file @
05acd51f
...
@@ -567,7 +567,11 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id)
...
@@ -567,7 +567,11 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id)
view
->
contain_auto_increment
=
1
;
view
->
contain_auto_increment
=
1
;
/* prepare unique test */
/* prepare unique test */
field
->
field
->
query_id
=
other_query_id
;
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 */
/* unique test */
for
(
trans
=
trans_start
;
trans
!=
trans_end
;
trans
++
)
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