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
977d58f6
Commit
977d58f6
authored
Jul 01, 2013
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#58165: "my_empty_string" gets modified and causes LOAD DATA to fail and
Cleanup test case (left outfile in data dir)
parent
b3e74a07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
mysql-test/r/func_str.result
mysql-test/r/func_str.result
+2
-2
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+4
-2
No files found.
mysql-test/r/func_str.result
View file @
977d58f6
...
...
@@ -2617,13 +2617,13 @@ Warning 1292 Truncated incorrect DECIMAL value: ''
# and other crashes
#
CREATE TABLE t1 ( a TEXT );
SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE '
bug58165.txt'
;
SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE '
MYSQLTEST_VARDIR/tmp/bug58165.txt';
;
SELECT insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' );
insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' )
x
Warnings:
Warning 1292 Truncated incorrect INTEGER value: 'b'
LOAD DATA INFILE '
bug58165.txt' INTO TABLE t1
;
LOAD DATA INFILE '
MYSQLTEST_VARDIR/tmp/bug58165.txt' INTO TABLE t1;
;
SELECT * FROM t1;
a
aaaaaaaaaaaaaa
...
...
mysql-test/t/func_str.test
View file @
977d58f6
...
...
@@ -1374,9 +1374,11 @@ SELECT CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3));
--
echo
# and other crashes
--
echo
#
CREATE
TABLE
t1
(
a
TEXT
);
SELECT
'aaaaaaaaaaaaaa'
INTO
OUTFILE
'bug58165.txt'
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
eval
SELECT
'aaaaaaaaaaaaaa'
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/bug58165.txt'
;
SELECT
insert
(
substring_index
(
'a'
,
'a'
,
'b'
),
1
,
0
,
'x'
);
LOAD
DATA
INFILE
'bug58165.txt'
INTO
TABLE
t1
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
eval
LOAD
DATA
INFILE
'$MYSQLTEST_VARDIR/tmp/bug58165.txt'
INTO
TABLE
t1
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
...
...
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