~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_str.result

  • Committer: Andrew Hutchings
  • Date: 2010-10-26 20:59:40 UTC
  • mto: (1883.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1884.
  • Revision ID: andrew@linuxjedi.co.uk-20101026205940-a0rj61xtuf6wn9h5
Fix test cases for the new default max_packet_size

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
length(repeat("a",100000000))   length(repeat("a",1000*64))
288
288
NULL    64000
289
289
Warnings:
290
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
290
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
291
291
select position("0" in "baaa" in (1)),position("0" in "1" in (1,2,3)),position("sql" in ("mysql"));
292
292
position("0" in "baaa" in (1))  position("0" in "1" in (1,2,3)) position("sql" in ("mysql"))
293
293
1       0       3
1374
1374
repeat('hello', 4294967295)
1375
1375
NULL
1376
1376
Warnings:
1377
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1377
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1378
1378
select repeat('hello', -4294967296);
1379
1379
repeat('hello', -4294967296)
1380
1380
 
1382
1382
repeat('hello', 4294967296)
1383
1383
NULL
1384
1384
Warnings:
1385
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1385
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1386
1386
select repeat('hello', -4294967297);
1387
1387
repeat('hello', -4294967297)
1388
1388
 
1390
1390
repeat('hello', 4294967297)
1391
1391
NULL
1392
1392
Warnings:
1393
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1393
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1394
1394
select repeat('hello', -18446744073709551615);
1395
1395
repeat('hello', -18446744073709551615)
1396
1396
 
1401
1401
repeat('hello', 18446744073709551615)
1402
1402
NULL
1403
1403
Warnings:
1404
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1404
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1405
1405
select repeat('hello', -18446744073709551616);
1406
1406
repeat('hello', -18446744073709551616)
1407
1407
 
1414
1414
Warnings:
1415
1415
Error   1292    Truncated incorrect DECIMAL value: ''
1416
1416
Error   1292    Truncated incorrect DECIMAL value: ''
1417
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1417
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1418
1418
select repeat('hello', -18446744073709551617);
1419
1419
repeat('hello', -18446744073709551617)
1420
1420
 
1427
1427
Warnings:
1428
1428
Error   1292    Truncated incorrect DECIMAL value: ''
1429
1429
Error   1292    Truncated incorrect DECIMAL value: ''
1430
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1430
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1431
1431
select space(-1);
1432
1432
space(-1)
1433
1433
 
1438
1438
space(4294967295)
1439
1439
NULL
1440
1440
Warnings:
1441
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1441
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1442
1442
select space(-4294967296);
1443
1443
space(-4294967296)
1444
1444
 
1446
1446
space(4294967296)
1447
1447
NULL
1448
1448
Warnings:
1449
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1449
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1450
1450
select space(-4294967297);
1451
1451
space(-4294967297)
1452
1452
 
1454
1454
space(4294967297)
1455
1455
NULL
1456
1456
Warnings:
1457
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1457
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1458
1458
select space(-18446744073709551615);
1459
1459
space(-18446744073709551615)
1460
1460
 
1465
1465
space(18446744073709551615)
1466
1466
NULL
1467
1467
Warnings:
1468
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1468
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1469
1469
select space(-18446744073709551616);
1470
1470
space(-18446744073709551616)
1471
1471
 
1478
1478
Warnings:
1479
1479
Error   1292    Truncated incorrect DECIMAL value: ''
1480
1480
Error   1292    Truncated incorrect DECIMAL value: ''
1481
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1481
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1482
1482
select space(-18446744073709551617);
1483
1483
space(-18446744073709551617)
1484
1484
 
1491
1491
Warnings:
1492
1492
Error   1292    Truncated incorrect DECIMAL value: ''
1493
1493
Error   1292    Truncated incorrect DECIMAL value: ''
1494
 
Warning 1301    Result of repeat() was larger than max_allowed_packet (1048576) - truncated
 
1494
Warning 1301    Result of repeat() was larger than max_allowed_packet (67108864) - truncated
1495
1495
select rpad('hello', -1, '1');
1496
1496
rpad('hello', -1, '1')
1497
1497
NULL
1502
1502
rpad('hello', 4294967295, '1')
1503
1503
NULL
1504
1504
Warnings:
1505
 
Warning 1301    Result of rpad() was larger than max_allowed_packet (1048576) - truncated
 
1505
Warning 1301    Result of rpad() was larger than max_allowed_packet (67108864) - truncated
1506
1506
select rpad('hello', -4294967296, '1');
1507
1507
rpad('hello', -4294967296, '1')
1508
1508
NULL
1510
1510
rpad('hello', 4294967296, '1')
1511
1511
NULL
1512
1512
Warnings:
1513
 
Warning 1301    Result of rpad() was larger than max_allowed_packet (1048576) - truncated
 
1513
Warning 1301    Result of rpad() was larger than max_allowed_packet (67108864) - truncated
1514
1514
select rpad('hello', -4294967297, '1');
1515
1515
rpad('hello', -4294967297, '1')
1516
1516
NULL
1518
1518
rpad('hello', 4294967297, '1')
1519
1519
NULL
1520
1520
Warnings:
1521
 
Warning 1301    Result of rpad() was larger than max_allowed_packet (1048576) - truncated
 
1521
Warning 1301    Result of rpad() was larger than max_allowed_packet (67108864) - truncated
1522
1522
select rpad('hello', -18446744073709551615, '1');
1523
1523
rpad('hello', -18446744073709551615, '1')
1524
1524
NULL
1529
1529
rpad('hello', 18446744073709551615, '1')
1530
1530
NULL
1531
1531
Warnings:
1532
 
Warning 1301    Result of rpad() was larger than max_allowed_packet (1048576) - truncated
 
1532
Warning 1301    Result of rpad() was larger than max_allowed_packet (67108864) - truncated
1533
1533
select rpad('hello', -18446744073709551616, '1');
1534
1534
rpad('hello', -18446744073709551616, '1')
1535
1535
NULL
1542
1542
Warnings:
1543
1543
Error   1292    Truncated incorrect DECIMAL value: ''
1544
1544
Error   1292    Truncated incorrect DECIMAL value: ''
1545
 
Warning 1301    Result of rpad() was larger than max_allowed_packet (1048576) - truncated
 
1545
Warning 1301    Result of rpad() was larger than max_allowed_packet (67108864) - truncated
1546
1546
select rpad('hello', -18446744073709551617, '1');
1547
1547
rpad('hello', -18446744073709551617, '1')
1548
1548
NULL
1555
1555
Warnings:
1556
1556
Error   1292    Truncated incorrect DECIMAL value: ''
1557
1557
Error   1292    Truncated incorrect DECIMAL value: ''
1558
 
Warning 1301    Result of rpad() was larger than max_allowed_packet (1048576) - truncated
 
1558
Warning 1301    Result of rpad() was larger than max_allowed_packet (67108864) - truncated
1559
1559
select lpad('hello', -1, '1');
1560
1560
lpad('hello', -1, '1')
1561
1561
NULL
1566
1566
lpad('hello', 4294967295, '1')
1567
1567
NULL
1568
1568
Warnings:
1569
 
Warning 1301    Result of lpad() was larger than max_allowed_packet (1048576) - truncated
 
1569
Warning 1301    Result of lpad() was larger than max_allowed_packet (67108864) - truncated
1570
1570
select lpad('hello', -4294967296, '1');
1571
1571
lpad('hello', -4294967296, '1')
1572
1572
NULL
1574
1574
lpad('hello', 4294967296, '1')
1575
1575
NULL
1576
1576
Warnings:
1577
 
Warning 1301    Result of lpad() was larger than max_allowed_packet (1048576) - truncated
 
1577
Warning 1301    Result of lpad() was larger than max_allowed_packet (67108864) - truncated
1578
1578
select lpad('hello', -4294967297, '1');
1579
1579
lpad('hello', -4294967297, '1')
1580
1580
NULL
1582
1582
lpad('hello', 4294967297, '1')
1583
1583
NULL
1584
1584
Warnings:
1585
 
Warning 1301    Result of lpad() was larger than max_allowed_packet (1048576) - truncated
 
1585
Warning 1301    Result of lpad() was larger than max_allowed_packet (67108864) - truncated
1586
1586
select lpad('hello', -18446744073709551615, '1');
1587
1587
lpad('hello', -18446744073709551615, '1')
1588
1588
NULL
1593
1593
lpad('hello', 18446744073709551615, '1')
1594
1594
NULL
1595
1595
Warnings:
1596
 
Warning 1301    Result of lpad() was larger than max_allowed_packet (1048576) - truncated
 
1596
Warning 1301    Result of lpad() was larger than max_allowed_packet (67108864) - truncated
1597
1597
select lpad('hello', -18446744073709551616, '1');
1598
1598
lpad('hello', -18446744073709551616, '1')
1599
1599
NULL
1606
1606
Warnings:
1607
1607
Error   1292    Truncated incorrect DECIMAL value: ''
1608
1608
Error   1292    Truncated incorrect DECIMAL value: ''
1609
 
Warning 1301    Result of lpad() was larger than max_allowed_packet (1048576) - truncated
 
1609
Warning 1301    Result of lpad() was larger than max_allowed_packet (67108864) - truncated
1610
1610
select lpad('hello', -18446744073709551617, '1');
1611
1611
lpad('hello', -18446744073709551617, '1')
1612
1612
NULL
1619
1619
Warnings:
1620
1620
Error   1292    Truncated incorrect DECIMAL value: ''
1621
1621
Error   1292    Truncated incorrect DECIMAL value: ''
1622
 
Warning 1301    Result of lpad() was larger than max_allowed_packet (1048576) - truncated
 
1622
Warning 1301    Result of lpad() was larger than max_allowed_packet (67108864) - truncated
1623
1623
SELECT CHAR(0xff,0x8f);
1624
1624
CHAR(0xff,0x8f)
1625
1625
��