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
4cf8696e
Commit
4cf8696e
authored
Aug 01, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash in 'INSERT DELAYED' statement that failed due to a
conflict in a unique key. (Bug #12226)
parent
ea7df08c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/delayed.result
mysql-test/r/delayed.result
+7
-0
mysql-test/t/delayed.test
mysql-test/t/delayed.test
+9
-0
sql/sql_insert.cc
sql/sql_insert.cc
+3
-1
No files found.
mysql-test/r/delayed.result
View file @
4cf8696e
...
...
@@ -32,3 +32,10 @@ a b
3 d
4 e
drop table t1;
create table t1 (a int not null primary key);
insert into t1 values (1);
insert delayed into t1 values (1);
select * from t1;
a
1
drop table t1;
mysql-test/t/delayed.test
View file @
4cf8696e
...
...
@@ -38,3 +38,12 @@ select * from t1;
drop
table
t1
;
# End of 4.1 tests
#
# Bug #12226: Crash when a delayed insert fails due to a duplicate key
#
create
table
t1
(
a
int
not
null
primary
key
);
insert
into
t1
values
(
1
);
insert
delayed
into
t1
values
(
1
);
select
*
from
t1
;
drop
table
t1
;
sql/sql_insert.cc
View file @
4cf8696e
...
...
@@ -1088,7 +1088,9 @@ ok_or_after_trg_err:
err:
info
->
last_errno
=
error
;
thd
->
lex
->
current_select
->
no_error
=
0
;
// Give error
/* current_select is NULL if this is a delayed insert */
if
(
thd
->
lex
->
current_select
)
thd
->
lex
->
current_select
->
no_error
=
0
;
// Give error
table
->
file
->
print_error
(
error
,
MYF
(
0
));
before_trg_err:
...
...
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