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
cb011af0
Commit
cb011af0
authored
Apr 11, 2006
by
aivanov@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge aivanov@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/alexi/bugs/mysql-5.0-merge
parents
fff2bc4d
5ae25ea5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/insert.result
mysql-test/r/insert.result
+6
-0
mysql-test/t/insert.test
mysql-test/t/insert.test
+12
-0
sql/sql_insert.cc
sql/sql_insert.cc
+1
-1
No files found.
mysql-test/r/insert.result
View file @
cb011af0
...
@@ -299,3 +299,9 @@ select count(*) from t2;
...
@@ -299,3 +299,9 @@ select count(*) from t2;
count(*)
count(*)
25500
25500
drop table t1,t2,t3;
drop table t1,t2,t3;
create table t1 (n int);
create view v1 as select * from t1;
insert delayed into v1 values (1);
ERROR HY000: 'test.v1' is not BASE TABLE
drop table t1;
drop view v1;
mysql-test/t/insert.test
View file @
cb011af0
...
@@ -175,3 +175,15 @@ select count(*) from t2;
...
@@ -175,3 +175,15 @@ select count(*) from t2;
insert
into
t2
select
t1
.*
from
t1
,
t2
t
,
t3
where
t1
.
id1
=
t
.
id2
and
t
.
id2
=
t3
.
id3
;
insert
into
t2
select
t1
.*
from
t1
,
t2
t
,
t3
where
t1
.
id1
=
t
.
id2
and
t
.
id2
=
t3
.
id3
;
select
count
(
*
)
from
t2
;
select
count
(
*
)
from
t2
;
drop
table
t1
,
t2
,
t3
;
drop
table
t1
,
t2
,
t3
;
#
# Test for INSERT DELAYED INTO a <view>
# BUG#13683: INSERT DELAYED into a view creates an infinite loop
#
create
table
t1
(
n
int
);
create
view
v1
as
select
*
from
t1
;
--
error
1347
insert
delayed
into
v1
values
(
1
);
drop
table
t1
;
drop
view
v1
;
sql/sql_insert.cc
View file @
cb011af0
...
@@ -321,7 +321,7 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
...
@@ -321,7 +321,7 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
if
(
!
table_list
->
derived
&&
!
table_list
->
view
)
if
(
!
table_list
->
derived
&&
!
table_list
->
view
)
table_list
->
updatable
=
1
;
// usual table
table_list
->
updatable
=
1
;
// usual table
}
}
else
else
if
(
thd
->
net
.
last_errno
!=
ER_WRONG_OBJECT
)
{
{
/* Too many delayed insert threads; Use a normal insert */
/* Too many delayed insert threads; Use a normal insert */
table_list
->
lock_type
=
lock_type
=
TL_WRITE
;
table_list
->
lock_type
=
lock_type
=
TL_WRITE
;
...
...
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