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
259a81d2
Commit
259a81d2
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
dc696126
Changes
2
Show 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 @
259a81d2
...
@@ -2617,13 +2617,13 @@ Warning 1292 Truncated incorrect DECIMAL value: ''
...
@@ -2617,13 +2617,13 @@ Warning 1292 Truncated incorrect DECIMAL value: ''
# and other crashes
# and other crashes
#
#
CREATE TABLE t1 ( a TEXT );
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' );
SELECT insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' );
insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' )
insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' )
x
x
Warnings:
Warnings:
Warning 1292 Truncated incorrect INTEGER value: 'b'
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;
SELECT * FROM t1;
a
a
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
...
...
mysql-test/t/func_str.test
View file @
259a81d2
...
@@ -1374,9 +1374,11 @@ SELECT CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3));
...
@@ -1374,9 +1374,11 @@ SELECT CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3));
--
echo
# and other crashes
--
echo
# and other crashes
--
echo
#
--
echo
#
CREATE
TABLE
t1
(
a
TEXT
);
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'
);
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
;
SELECT
*
FROM
t1
;
DROP
TABLE
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