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
c2d3d6bb
Commit
c2d3d6bb
authored
Oct 23, 2009
by
Jon Olav Hauglid
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
d539c157
63541129
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
mysql-test/r/update.result
mysql-test/r/update.result
+11
-0
mysql-test/t/update.test
mysql-test/t/update.test
+15
-0
sql/sql_update.cc
sql/sql_update.cc
+5
-0
No files found.
mysql-test/r/update.result
View file @
c2d3d6bb
...
...
@@ -503,3 +503,14 @@ ERROR HY000: Recursive stored functions and triggers are not allowed.
DROP TABLE t1;
DROP FUNCTION f1;
End of 5.0 tests
#
# Bug #47919 assert in open_table during ALTER temporary table
#
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT, PRIMARY KEY (f1));
CREATE TEMPORARY TABLE t2 LIKE t1;
INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1);
ALTER TABLE t2 COMMENT = 'ABC';
UPDATE t2, t1 SET t2.f1 = 2, t1.f1 = 9;
ALTER TABLE t2 COMMENT = 'DEF';
DROP TABLE t1, t2;
mysql-test/t/update.test
View file @
c2d3d6bb
...
...
@@ -452,3 +452,18 @@ DROP TABLE t1;
DROP
FUNCTION
f1
;
--
echo
End
of
5.0
tests
--
echo
#
--
echo
# Bug #47919 assert in open_table during ALTER temporary table
--
echo
#
CREATE
TABLE
t1
(
f1
INTEGER
AUTO_INCREMENT
,
PRIMARY
KEY
(
f1
));
CREATE
TEMPORARY
TABLE
t2
LIKE
t1
;
INSERT
INTO
t1
VALUES
(
1
);
INSERT
INTO
t2
VALUES
(
1
);
ALTER
TABLE
t2
COMMENT
=
'ABC'
;
UPDATE
t2
,
t1
SET
t2
.
f1
=
2
,
t1
.
f1
=
9
;
ALTER
TABLE
t2
COMMENT
=
'DEF'
;
DROP
TABLE
t1
,
t2
;
sql/sql_update.cc
View file @
c2d3d6bb
...
...
@@ -1696,6 +1696,11 @@ bool multi_update::send_data(List<Item> ¬_used_values)
TRG_EVENT_UPDATE
))
DBUG_RETURN
(
1
);
/*
Reset the table->auto_increment_field_not_null as it is valid for
only one row.
*/
table
->
auto_increment_field_not_null
=
FALSE
;
found
++
;
if
(
!
can_compare_record
||
compare_record
(
table
))
{
...
...
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