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
90647733
Commit
90647733
authored
May 08, 2007
by
cbell/Chuck@mysql_cab
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql_cab.:C:/source/c++/mysql-5.1-new-rpl
into mysql_cab.:C:/source/c++/mysql-5.1_BUG_17233
parents
c600629c
e6718df3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
mysql-test/extra/rpl_tests/rpl_loaddata.test
mysql-test/extra/rpl_tests/rpl_loaddata.test
+12
-0
mysql-test/r/rpl_loaddata.result
mysql-test/r/rpl_loaddata.result
+4
-0
sql/sql_load.cc
sql/sql_load.cc
+3
-3
No files found.
mysql-test/extra/rpl_tests/rpl_loaddata.test
View file @
90647733
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
# Last_slave_errno in SHOW SLAVE STATUS (1st and 3rd commands did not: bug 986)
# Last_slave_errno in SHOW SLAVE STATUS (1st and 3rd commands did not: bug 986)
--
source
include
/
master
-
slave
.
inc
--
source
include
/
master
-
slave
.
inc
source
include
/
have_innodb
.
inc
;
connection
slave
;
connection
slave
;
reset
master
;
reset
master
;
...
@@ -156,4 +157,15 @@ drop table t2;
...
@@ -156,4 +157,15 @@ drop table t2;
connection
master
;
connection
master
;
drop
table
t2
;
drop
table
t2
;
drop
table
t1
;
drop
table
t1
;
# BUG#17233 LOAD DATA INFILE: failure causes mysqld dbug_assert, binlog not flushed
CREATE
TABLE
t1
(
word
CHAR
(
20
)
NOT
NULL
PRIMARY
KEY
)
ENGINE
=
INNODB
;
--
error
ER_DUP_ENTRY_WITH_KEY_NAME
LOAD
DATA
INFILE
"../std_data_ln/words.dat"
INTO
TABLE
t1
;
--
disable
warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable
warnings
# End of 4.1 tests
# End of 4.1 tests
mysql-test/r/rpl_loaddata.result
View file @
90647733
...
@@ -86,3 +86,7 @@ ERROR 23000: Duplicate entry '2003-03-22' for key 'day'
...
@@ -86,3 +86,7 @@ ERROR 23000: Duplicate entry '2003-03-22' for key 'day'
drop table t2;
drop table t2;
drop table t2;
drop table t2;
drop table t1;
drop table t1;
CREATE TABLE t1 (word CHAR(20) NOT NULL PRIMARY KEY) ENGINE=INNODB;
LOAD DATA INFILE "../std_data_ln/words.dat" INTO TABLE t1;
ERROR 23000: Duplicate entry 'Aarhus' for key 'PRIMARY'
DROP TABLE IF EXISTS t1;
sql/sql_load.cc
View file @
90647733
...
@@ -413,9 +413,6 @@ bool mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
...
@@ -413,9 +413,6 @@ bool mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
if
(
error
)
if
(
error
)
{
{
if
(
transactional_table
)
ha_autocommit_or_rollback
(
thd
,
error
);
if
(
read_file_from_client
)
if
(
read_file_from_client
)
while
(
!
read_info
.
next_line
())
while
(
!
read_info
.
next_line
())
;
;
...
@@ -463,6 +460,9 @@ bool mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
...
@@ -463,6 +460,9 @@ bool mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
}
}
}
}
#endif
/*!EMBEDDED_LIBRARY*/
#endif
/*!EMBEDDED_LIBRARY*/
if
(
transactional_table
)
ha_autocommit_or_rollback
(
thd
,
error
);
error
=
-
1
;
// Error on read
error
=
-
1
;
// Error on read
goto
err
;
goto
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