~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/r/func_str.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
2600
2600
1
2601
2601
1
2602
2602
DROP TABLE t1;
 
2603
#
 
2604
# Bug#57913 large negative number to string conversion functions crash
 
2605
# Bug#57810 case/when/then : Assertion failed: length || !scale
 
2606
#
 
2607
SELECT '1' IN ('1', SUBSTRING(-9223372036854775809, 1));
 
2608
'1' IN ('1', SUBSTRING(-9223372036854775809, 1))
 
2609
1
 
2610
SELECT CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3));
 
2611
CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3))
 
2612
1
 
2613
Warnings:
 
2614
Warning 1292    Truncated incorrect DECIMAL value: ''
 
2615
 
2616
# Bug#58165: "my_empty_string" gets modified and causes LOAD DATA to fail
 
2617
# and other crashes
 
2618
#
 
2619
CREATE TABLE t1 ( a TEXT );
 
2620
SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE 'bug58165.txt';
 
2621
SELECT insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' );
 
2622
insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' )
 
2623
x
 
2624
Warnings:
 
2625
Warning 1292    Truncated incorrect INTEGER value: 'b'
 
2626
LOAD DATA INFILE 'bug58165.txt' INTO TABLE t1;
 
2627
SELECT * FROM t1;
 
2628
a
 
2629
aaaaaaaaaaaaaa
 
2630
DROP TABLE t1;
2603
2631
End of 5.1 tests