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
46615086
Commit
46615086
authored
Sep 18, 2008
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
manual merge
parents
7d19a76a
86775b10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
mysql-test/r/loaddata.result
mysql-test/r/loaddata.result
+3
-1
mysql-test/t/loaddata.test
mysql-test/t/loaddata.test
+7
-5
No files found.
mysql-test/r/loaddata.result
View file @
46615086
...
...
@@ -343,9 +343,11 @@ SET SESSION character_set_server=latin1;
SET SESSION character_set_connection=latin1;
SET @OLD_SQL_MODE=@@SESSION.SQL_MODE;
test LOAD DATA INFILE
SET sql_mode = '';
SELECT '1 \\aa\n' INTO DUMPFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt';
CREATE TABLE t1 (id INT, val1 CHAR(3)) ENGINE=MyISAM;
SET sql_mode = 'NO_BACKSLASH_ESCAPES';
LOAD DATA
LOCAL
INFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' REPLACE INTO TABLE t1 FIELDS TERMINATED BY ' ';
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug37114.txt' REPLACE INTO TABLE t1 FIELDS TERMINATED BY ' ';
SELECT * FROM t1;
id val1
1 \aa
...
...
mysql-test/t/loaddata.test
View file @
46615086
...
...
@@ -320,9 +320,10 @@ DROP VIEW v3;
--
echo
--
echo
# -- End of Bug#35469.
###########################################################################
###########################################################################
#
# Bug#37114: sql_mode NO_BACKSLASH_ESCAPES does not work properly with
# LOAD DATA INFILE
...
...
@@ -361,16 +362,17 @@ SET @OLD_SQL_MODE=@@SESSION.SQL_MODE;
--
let
$file
=
$MYSQLTEST_VARDIR
/
tmp
/
bug37114
.
txt
--
let
$file2
=
$MYSQLTEST_VARDIR
/
tmp
/
bug37114_out
.
txt
--
write_file
$file
1
\aa
EOF
SET
sql_mode
=
''
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
eval
SELECT
'1 \\\\aa\n'
INTO
DUMPFILE
'$file'
CREATE
TABLE
t1
(
id
INT
,
val1
CHAR
(
3
))
ENGINE
=
MyISAM
;
SET
sql_mode
=
'NO_BACKSLASH_ESCAPES'
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
eval
LOAD
DATA
LOCAL
INFILE
'$file'
REPLACE
INTO
TABLE
t1
FIELDS
TERMINATED
BY
' '
--
eval
LOAD
DATA
INFILE
'$file'
REPLACE
INTO
TABLE
t1
FIELDS
TERMINATED
BY
' '
SELECT
*
FROM
t1
;
# show we can write this with OUTFILE, forcing the parameters for now
...
...
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