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
eb3912c0
Commit
eb3912c0
authored
Aug 22, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug #1078. two innodb+delayed crashes
parent
58bdc6f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+12
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+14
-0
sql/sql_insert.cc
sql/sql_insert.cc
+4
-0
No files found.
mysql-test/r/innodb.result
View file @
eb3912c0
...
@@ -1329,3 +1329,15 @@ id label
...
@@ -1329,3 +1329,15 @@ id label
3524 Societe Test
3524 Societe Test
3525 Fournisseur Test
3525 Fournisseur Test
drop table t1,t2;
drop table t1,t2;
create table t1 (c1 char(5) unique not null, c2 int, stamp timestamp) type=innodb;
select * from t1;
c1 c2 stamp
replace delayed into t1 (c1, c2) values ( "text1","11"),( "text2","12");
ERROR HY000: Table storage engine for 't1' doesn't have this option
select * from t1;
c1 c2 stamp
replace delayed into t1 (c1, c2) values ( "text1","12"),( "text2","13"),( "text3","14", "a" ),( "text4","15", "b" );
ERROR HY000: Table storage engine for 't1' doesn't have this option
select * from t1;
c1 c2 stamp
drop table t1;
mysql-test/t/innodb.test
View file @
eb3912c0
...
@@ -906,3 +906,17 @@ SELECT t2.id, t1.label FROM t2 INNER JOIN
...
@@ -906,3 +906,17 @@ SELECT t2.id, t1.label FROM t2 INNER JOIN
(
SELECT
t1
.
id_object
as
id_object
FROM
t1
WHERE
t1
.
label
LIKE
'%test%'
)
AS
lbl
(
SELECT
t1
.
id_object
as
id_object
FROM
t1
WHERE
t1
.
label
LIKE
'%test%'
)
AS
lbl
ON
(
t2
.
id
=
lbl
.
id_object
)
INNER
JOIN
t1
ON
(
t2
.
id
=
t1
.
id_object
);
ON
(
t2
.
id
=
lbl
.
id_object
)
INNER
JOIN
t1
ON
(
t2
.
id
=
t1
.
id_object
);
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug #1078
#
create
table
t1
(
c1
char
(
5
)
unique
not
null
,
c2
int
,
stamp
timestamp
)
type
=
innodb
;
select
*
from
t1
;
--
error
1031
replace
delayed
into
t1
(
c1
,
c2
)
values
(
"text1"
,
"11"
),(
"text2"
,
"12"
);
select
*
from
t1
;
--
error
1031
replace
delayed
into
t1
(
c1
,
c2
)
values
(
"text1"
,
"12"
),(
"text2"
,
"13"
),(
"text3"
,
"14"
,
"a"
),(
"text4"
,
"15"
,
"b"
);
select
*
from
t1
;
drop
table
t1
;
sql/sql_insert.cc
View file @
eb3912c0
...
@@ -172,7 +172,10 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
...
@@ -172,7 +172,10 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
else
else
res
=
(
table
==
0
);
res
=
(
table
==
0
);
else
else
{
lock_type
=
TL_WRITE
;
res
=
open_and_lock_tables
(
thd
,
table_list
);
res
=
open_and_lock_tables
(
thd
,
table_list
);
}
}
}
else
else
res
=
open_and_lock_tables
(
thd
,
table_list
);
res
=
open_and_lock_tables
(
thd
,
table_list
);
...
@@ -627,6 +630,7 @@ class delayed_insert :public ilink {
...
@@ -627,6 +630,7 @@ class delayed_insert :public ilink {
thd
.
current_tablenr
=
0
;
thd
.
current_tablenr
=
0
;
thd
.
version
=
refresh_version
;
thd
.
version
=
refresh_version
;
thd
.
command
=
COM_DELAYED_INSERT
;
thd
.
command
=
COM_DELAYED_INSERT
;
thd
.
lex
.
current_select
=
0
;
/* for my_message_sql */
bzero
((
char
*
)
&
thd
.
net
,
sizeof
(
thd
.
net
));
// Safety
bzero
((
char
*
)
&
thd
.
net
,
sizeof
(
thd
.
net
));
// Safety
thd
.
system_thread
=
1
;
thd
.
system_thread
=
1
;
...
...
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