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
04f4786c
Commit
04f4786c
authored
Jun 09, 2010
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
75a18e24
287fa3ca
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletion
+38
-1
mysql-test/r/loaddata.result
mysql-test/r/loaddata.result
+7
-0
mysql-test/t/loaddata.test
mysql-test/t/loaddata.test
+20
-0
sql/net_serv.cc
sql/net_serv.cc
+7
-1
sql/sql_load.cc
sql/sql_load.cc
+4
-0
No files found.
mysql-test/r/loaddata.result
View file @
04f4786c
...
...
@@ -496,4 +496,11 @@ SELECT * FROM t1;
col0
test
DROP TABLE t1;
#
# Bug #52512 : Assertion `! is_set()' in
# Diagnostics_area::set_ok_status on LOAD DATA
#
CREATE TABLE t1 (id INT NOT NULL);
LOAD DATA LOCAL INFILE 'tb.txt' INTO TABLE t1;
DROP TABLE t1;
End of 5.1 tests
mysql-test/t/loaddata.test
View file @
04f4786c
...
...
@@ -560,4 +560,24 @@ let $MYSQLD_DATADIR= `select @@datadir`;
remove_file
$MYSQLD_DATADIR
/
test
/
t1
.
txt
;
--
echo
#
--
echo
# Bug #52512 : Assertion `! is_set()' in
--
echo
# Diagnostics_area::set_ok_status on LOAD DATA
--
echo
#
connect
(
con1
,
localhost
,
root
,,
test
);
CREATE
TABLE
t1
(
id
INT
NOT
NULL
);
--
send
LOAD
DATA
LOCAL
INFILE
'tb.txt'
INTO
TABLE
t1
# please keep this is a spearate test file : it's important to have no
# commands after this one
connection
default
;
dirty_close
con1
;
connect
(
con1
,
localhost
,
root
,,
test
);
DROP
TABLE
t1
;
connection
default
;
disconnect
con1
;
--
echo
End
of
5.1
tests
sql/net_serv.cc
View file @
04f4786c
...
...
@@ -902,7 +902,13 @@ my_real_read(NET *net, size_t *complen)
(
"Packets out of order (Found: %d, expected %u)"
,
(
int
)
net
->
buff
[
net
->
where_b
+
3
],
net
->
pkt_nr
));
#ifdef EXTRA_DEBUG
/*
We don't make noise server side, since the client is expected
to break the protocol for e.g. --send LOAD DATA .. LOCAL where
the server expects the client to send a file, but the client
may reply with a new command instead.
*/
#if defined (EXTRA_DEBUG) && !defined (MYSQL_SERVER)
fflush
(
stdout
);
fprintf
(
stderr
,
"Error: Packets out of order (Found: %d, expected %d)
\n
"
,
(
int
)
net
->
buff
[
net
->
where_b
+
3
],
...
...
sql/sql_load.cc
View file @
04f4786c
...
...
@@ -933,6 +933,10 @@ read_sep_field(THD *thd, COPY_INFO &info, TABLE_LIST *table_list,
DBUG_RETURN
(
1
);
}
}
if
(
thd
->
is_error
())
read_info
.
error
=
1
;
if
(
read_info
.
error
)
break
;
if
(
skip_lines
)
...
...
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