1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209
|
-1 before test
<No error> before test
select otto from (select 1 as otto) as t1;
otto
1
select otto from (select 1 as otto) as t1;
otto
1
select friedrich from (select 1 as otto) as t1;
mysqltest: At line 1: Query 'select friedrich from (select 1 as otto) as t1' failed.
ERROR 1054 (42S22): Unknown column 'friedrich' in 'field list'
select friedrich from (select 1 as otto) as t1;
ERROR 42S22: Unknown column 'friedrich' in 'field list'
select otto from (select 1 as otto) as t1;
otto
1
select otto from (select 1 as otto) as t1;
otto
1
mysqltest: At line 1: Query 'select otto from (select 1 as otto) as t1' succeeded, should have failed with error '42S22'
mysqltest: At line 1: Expecting a SQLSTATE (00000) from query 'remove_file MYSQLTEST_VARDIR/tmp/test_nonexistent.tmp' which cannot produce one.
select friedrich from (select 1 as otto) as t1;
ERROR 42S22: Unknown column 'friedrich' in 'field list'
select friedrich from (select 1 as otto) as t1;
ERROR 42S22: Unknown column 'friedrich' in 'field list'
mysqltest: At line 1: Query 'select friedrich from (select 1 as otto) as t1' failed with wrong error 1054: 'Unknown column 'friedrich' in 'field list'', should have failed with error '00000'.
select otto from (select 1 as otto) as t1;
otto
1
select 0 as "after_successful_stmt_errno" ;
after_successful_stmt_errno
0
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
ER_PARSE_ERROR
select 1064 as "after_wrong_syntax_errno" ;
after_wrong_syntax_errno
1064
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
ER_PARSE_ERROR
select 1064 as "after_let_var_equal_value" ;
after_let_var_equal_value
1064
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
set @my_var= 'abc' ;
select 0 as "after_set_var_equal_value" ;
after_set_var_equal_value
0
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
ER_PARSE_ERROR
select 1064 as "after_disable_warnings_command" ;
after_disable_warnings_command
1064
drop table if exists t1 ;
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
drop table if exists t1 ;
select 0 as "after_disable_warnings" ;
after_disable_warnings
0
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
select 3 from t1 ;
ERROR 42S02: Table 'test.t1' doesn't exist
ER_NO_SUCH_TABLE
select 1146 as "after_minus_masked" ;
after_minus_masked
1146
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
select 3 from t1 ;
ERROR 42S02: Table 'test.t1' doesn't exist
ER_NO_SUCH_TABLE
select 1146 as "after_!_masked" ;
after_!_masked
1146
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
select -1 as "after_let_errno_equal_value" ;
after_let_errno_equal_value
-1
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
prepare stmt from "select 3 from t1" ;
ERROR 42S02: Table 'test.t1' doesn't exist
ER_NO_SUCH_TABLE
select 1146 as "after_failing_prepare" ;
after_failing_prepare
1146
create table t1 ( f1 char(10));
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
prepare stmt from "select 3 from t1" ;
select 0 as "after_successful_prepare" ;
after_successful_prepare
0
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
execute stmt;
3
select 0 as "after_successful_execute" ;
after_successful_execute
0
drop table t1;
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
execute stmt;
ERROR 42S02: Table 'test.t1' doesn't exist
ER_NO_SUCH_TABLE
select 1146 as "after_failing_execute" ;
after_failing_execute
1146
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
execute __stmt_;
ERROR HY000: Unknown prepared statement handler (__stmt_) given to EXECUTE
ER_UNKNOWN_STMT_HANDLER
select 1243 as "after_failing_execute" ;
after_failing_execute
1243
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
deallocate prepare stmt;
select 0 as "after_successful_deallocate" ;
after_successful_deallocate
0
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
deallocate prepare __stmt_;
ERROR HY000: Unknown prepared statement handler (__stmt_) given to DEALLOCATE PREPARE
ER_UNKNOWN_STMT_HANDLER
select 1243 as "after_failing_deallocate" ;
after_failing_deallocate
1243
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
ER_PARSE_ERROR
select 1064 as "after_--disable_abort_on_error" ;
after_--disable_abort_on_error
1064
select 3 from t1 ;
ERROR 42S02: Table 'test.t1' doesn't exist
select 3 from t1 ;
ERROR 42S02: Table 'test.t1' doesn't exist
select 3 from t1 ;
ERROR 42S02: Table 'test.t1' doesn't exist
ER_NO_SUCH_TABLE
select 1146 as "after_!errno_masked_error" ;
after_!errno_masked_error
1146
select 3 from t1;
ERROR 42S02: Table 'test.t1' doesn't exist
mysqltest: At line 1: Query 'select 3 from t1' failed with wrong error 1146: 'Table 'test.t1' doesn't exist', should have failed with error '1000'.
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
is empty
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'nonsense' at line 1
is empty
garbage ;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
ER_PARSE_ERROR
select 1064 as "after_--enable_abort_on_error" ;
after_--enable_abort_on_error
1064
select 3 from t1 ;
ERROR 42S02: Table 'test.t1' doesn't exist
select 3 from t1;
ERROR 42S02: Table 'test.t1' doesn't exist
mysqltest: At line 1: Query 'select 3 from t1' failed with wrong error 1146: 'Table 'test.t1' doesn't exist', should have failed with error '1064'.
garbage;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
select 2;
select 3;
3
3
select 5;
ERROR 42S02: Table 'test.t1' doesn't exist
select 7;
7
7
mysqltest: At line 1: End of line junk detected: "OCNE"
connect con1,localhost,root,,;
select 5 from t1;
lower
case
name
abc
xyz
is empty
is empty
"Yes it's empty"
ER_FORBID_SCHEMA_CHANGE
1105
mysqltest: At line 1: Invalid error in input
<Unknown>
<Unknown>
0
0
hello
hello
;;;;;;;;
# MySQL: -- The
mysqltest: At line 1: Extra argument '6' passed to 'sleep'
mysqltest: At line 1: Extra argument '6' passed to 'sleep'
mysqltest: At line 1: Extra argument 'A comment
show status' passed to 'sleep'
mysqltest: At line 1: End of line junk detected: "sleep 7
# Another comment
"
mysqltest: At line 1: Extra argument 'comment
# comment 3
disable_query_log' passed to 'disconnect'
mysqltest: At line 1: Extra argument 'comment
# comment 3
disable_query_log' passed to 'disconnect'
mysqltest: At line 1: End of line junk detected: "disconnect default
#
# comment
# comment2
# comment 3
--disable_query_log
"
mysqltest: At line 1: End of line junk detected: "disconnect default # comment
# comment part2
# comment 3
--disable_query_log
"
mysqltest: At line 1: Extra delimiter ";" found
mysqltest: At line 1: Extra delimiter ";" found
mysqltest: At line 1: Spurious text after `query` expression
mysqltest: At line 1: Spurious text after `query` expression
mysqltest: At line 2: Spurious text after `query` expression
mysqltest: At line 1: Missing argument(s) to 'error' command.
mysqltest: At line 1: Missing argument(s) to 'error' command.
mysqltest: At line 1: The sqlstate definition must start with an uppercase S.
mysqltest: At line 1: The error name definition must start with an uppercase C or E.
mysqltest: At line 1: Invalid argument '9eeeee' to 'error' command, the argument may consist of either symbolic error names or error codes.
mysqltest: At line 1: Invalid argument '1sssss' to 'error' command, the argument may consist of either symbolic error names or error codes.
mysqltest: At line 1: The sqlstate must be exactly 5 chars long.
mysqltest: At line 1: The sqlstate may only consist of digits[0-9] and _uppercase_ letters.
mysqltest: At line 1: The sqlstate must be exactly 5 chars long.
mysqltest: At line 1: Unknown SQL error name 'E9999'.
mysqltest: At line 1: Invalid argument '999e9' to 'error' command, the argument may consist of either symbolic error names or error codes.
mysqltest: At line 1: Invalid argument '9b' to 'error' command, the argument may consist of either symbolic error names or error codes.
mysqltest: At line 1: Too many errorcodes specified.
DROP TABLE table_does_not_exist;
ERROR 42S02: Unknown table 'test.table_does_not_exist'
DROP TABLE table_does_not_exist;
ERROR 42S02: Unknown table 'test.table_does_not_exist'
DROP TABLE table_does_not_exist;
ERROR 42S02: Unknown table 'test.table_does_not_exist'
DROP TABLE table_does_not_exist;
ERROR 42S02: Unknown table 'test.table_does_not_exist'
CREATE TABLE t1 (a INT);
CREATE TABLE t1 (a INT);
ERROR 42S01: Table 't1' already exists
CREATE TABLE t1 (a INT);
ERROR 42S01: Table 't1' already exists
DROP TABLE t1;
MySQL
"MySQL"
MySQL: The world''s most popular open source database
"MySQL: The world's most popular open source database"
MySQL: The world''s
most popular open
source database
# MySQL: The world''s
# most popular open
# source database
- MySQL: The world''s
- most popular open
- source database
- MySQL: The world''s
-- most popular
-- open source database
# MySQL: The
--world''s
# most popular
-- open
- source database
"MySQL: The world's most popular; open source database"
"MySQL: The world's most popular ; open source database"
"MySQL: The world's most popular ;open source database"
echo message echo message
mysqltest: At line 1: Missing argument in exec
1
1
2
2
X
3
MySQL
"MySQL"
MySQL: The
world''s most
popular open
source database
# MySQL: The
# world''s most
# popular open
# source database
-- MySQL: The
-- world''s most
-- popular
-- open source database
# MySQL: The
- world''s most
-- popular open
# source database
'# MySQL: The
- world''s most
-- popular open
# source database'
"# MySQL: The
- world''s most
-- popular open
# source database"
hej
hej
hej
1
a long variable content
a long variable content
a long a long variable content variable content
a long \$where variable content
banana = banana
Not a banana: ba\$cat\$cat
with\`some"escaped\'quotes
with\`some"escaped\'quotes
single'tick`backtick
mysqltest: At line 1: Missing arguments to let
mysqltest: At line 1: Missing variable name in let
mysqltest: At line 1: Missing assignment operator in let
mysqltest: At line 1: Missing assignment operator in let
mysqltest: At line 1: Missing assignment operator in let
mysqltest: At line 1: Missing variable name in let
mysqltest: At line 1: Missing variable name in let
mysqltest: At line 1: Missing assignment operator in let
# Execute: --echo # <whatever> success: $success
# <whatever> success: 1
# Execute: echo # <whatever> success: $success ;
# <whatever> success: 1
# The next two variants work fine and expand the content of $success
# Execute: --echo $success
1
# Execute: echo $success ;
1
# Check if let $B = $A is an assignment per value.
let $A = initial value of A;
let $B = initial value of B;
let $B = $A
# Content of $A is: initial value of B
let $A = changed value of A;
# Content of $B is: initial value of B
let $B = changed value of B;
# Content of $A is: changed value of A
var2: content of variable 1
var3: content of variable 1 content of variable 1
length of var3 is longer than 0
var1
hi 1 hi there
var2
2
var2 again
2
var3 two columns with same name
1 2 3
var4 from query that returns NULL
var5 from query that returns no row
failing query in let
create table t1 (a varchar(100)) charset utf8mb4;
insert into t1 values ('`select 42`');
`select 42`
insert into t1 values ('$dollar');
`select 42`
$dollar
drop table t1;
mysqltest: At line 1: Query 'let $var2= `failing query`' failed.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing query' at line 1
mysqltest: At line 1: Missing required argument 'filename' to command 'source'
mysqltest: At line 1: Could not open './non_existingFile' for reading, errno: 2
mysqltest: At line 1: Source directives are nesting too deep
In included file MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from MYSQLTEST_VARDIR/tmp/recursive.sql: 1
included from <stdin>: 1
garbage ;
mysqltest: At line 1: Query 'garbage ' failed.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
In included file MYSQLTEST_VARDIR/tmp/error.sql: 1
included from <stdin>: 1
2 = outer loop variable after while
here is the sourced script
2 = outer loop variable before dec
1 = outer loop variable after dec
1 = outer loop variable after while
here is the sourced script
1 = outer loop variable before dec
0 = outer loop variable after dec
outer=2 ifval=0
outer=1 ifval=1
here is the sourced script
ERROR 42S02: Table 'test.nowhere' doesn't exist
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else' at line 1
In loop
here is the sourced script
In loop
here is the sourced script
In loop
here is the sourced script
In loop
here is the sourced script
In loop
here is the sourced script
In loop
here is the sourced script
In loop
here is the sourced script
In loop
here is the sourced script
In loop
here is the sourced script
here is the sourced script
"hello"
"hello"
mysqltest: At line 2: Invalid argument to sleep "xyz"
mysqltest: At line 1: Missing required argument 'sleep_delay' to command 'sleep'
mysqltest: At line 1: Invalid argument to sleep "abc"
1
101
-99
mysqltest: At line 1: Missing argument to inc
mysqltest: At line 1: The argument to inc must be a variable (start with $)
mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
mysqltest: At line 1: End of line junk detected: "1000"
mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
-96
-96
-1
99
mysqltest: At line 1: Missing argument to dec
mysqltest: At line 1: The argument to dec must be a variable (start with $)
mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
mysqltest: At line 1: End of line junk detected: "1000"
mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
mysqltest: At line 1: Cannot perform inc/dec on a non-numeric value
test
test2
test3
test4
outer
true-inner
true-inner again
true-outer
Counter is greater than 0, (counter=10)
Counter should still be 10, is 10
Counter is not 0, (counter=0)
Not space var works
Counter is true, (counter=alpha)
while with string, only once
5<7
5<7 again
5<7 still
5<6
5>=5
5>=5 again
5>3
5==5
5!=8
5!=five
5==3+2
5 == 5
hello == hello
hello == hello
hello != goodbye
'quoted' == ''quoted''
two words
'two words'
"two words"
two words are two words
right answer
anything goes
0 != string
mysqltest: At line 2: Only == and != are supported for string values
mysqltest: At line 2: Found junk '~= 6' after $variable in condition
mysqltest: At line 2: Expression in if() must begin with $, !, ` or an integer
mysqltest: At line 1: Missing right operand in comparison
mysqltest: At line 1: Missing right operand in comparison
counter is 2
counter is 3
counter is 4
counter is 5
counter is 6
counter is 7
1
Testing while with not
mysqltest: At line 64: Nesting too deeply
In included file MYSQLTEST_VARDIR/tmp/mysqltest_while.inc: 65
included from <stdin>: 1
mysqltest: At line 1: missing '(' in while
mysqltest: At line 1: missing ')' in while
mysqltest: At line 1: Missing '{' after while. Found "dec $i"
mysqltest: At line 1: Stray '}' - end of block before beginning
mysqltest: At line 1: Stray 'end' command - end of block before beginning
{;
mysqltest: At line 1: Query '{' failed.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{' at line 1
mysqltest: At line 1: Missing '{' after while. Found "echo hej"
mysqltest: At line 3: Missing end of block
mysqltest: At line 3: Missing end of block
mysqltest: At line 1: missing '(' in if
mysqltest: At line 1: Stray 'end' command - end of block before beginning
select "b" bs col1, "c" bs col2;
col1 col2
b c
seledt "b" bs dol1, "d" bs dol2;
dol1 dol2
b d
mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a'
mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a;'
mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a'
mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a '
OK
mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a b c'
mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a b c '
select "a" as col1, "c" as col2;
col1 col2
b c
select "a" as col1, "c" as col2;
col1 col2
b d
mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a'
mysqltest: At line 1: Wrong number of arguments to replace_column in 'replace_column 1'
mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a b'
mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a 1'
mysqltest: At line 1: Wrong column number to replace_column in 'replace_column 1 b c '
select "LONG_STRING" as x;
x
LONG_STRING
dog
mysqltest: At line 1: Invalid integer argument "10!"
mysqltest: At line 1: Invalid integer argument "a"
mysqltest: At line 1: Missing required argument 'connection name' to command 'connect'
mysqltest: At line 1: Missing required argument 'connection name' to command 'connect'
mysqltest: At line 1: Missing required argument 'host' to command 'connect'
mysqltest: At line 1: Missing required argument 'host' to command 'connect'
mysqltest: At line 1: Query 'connect con2,localhost,root,,illegal_db' failed.
ERROR 1049 (42000): Unknown database 'illegal_db'
mysqltest: At line 1: Illegal argument for port: 'illegal_port'
mysqltest: At line 1: Illegal option to connect: SMTP
200 connects succeeded
mysqltest: At line 3: connection 'test_con1' not found in connection pool
In included file MYSQLTEST_VARDIR/tmp/mysqltest.sql: 3
included from <stdin>: 1
mysqltest: At line 2: Connection test_con1 already exists
In included file MYSQLTEST_VARDIR/tmp/mysqltest.sql: 2
included from <stdin>: 1
show tables;
ERROR 3D000: No database selected
connect con1,localhost,root,,;
connection default;
connection con1;
disconnect con1;
connection default;
Output from mysqltest-x.inc
Output from mysqltest-x.inc
Output from mysqltest-x.inc
mysqltest: Could not open './non_existing_file.inc' for reading, errno: 2
failing_statement;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing_statement' at line 1
failing_statement;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing_statement' at line 1
SELECT 1 as a;
a
1
select 1 as `a'b`, 2 as `a"b`;
a'b a"b
1 2
select 'aaa\\','aa''a',"aa""a";
aaa\ aa'a aa"a
aaa\ aa'a aa"a
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
Here comes a message
--------------------
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
root@localhost
--------------
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
"Here comes a very very long message that
- is longer then 80 characters and
- consists of several lines"
--------------------------------------------------------------------------------
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
. Here comes a very very long message that
. - is longer then 80 characters and
. - consists of several lines
--------------------------------------------------------------------------------
Warnings:
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
mysqltest: The test didn't produce any output
Failing multi statement query
create table t1 (a int primary key);
insert into t1 values (1);
select 'select-me';
insertz 'error query'||||
select-me
select-me
mysqltest: At line 2: Query 'create table t1 (a int primary key);
insert into t1 values (1);
select 'select-me';
insertz 'error query'' failed.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz 'error query'' at line 1
drop table t1;
mysqltest: At line 2: Query 'create table t1 (a int primary key);
insert into t1 values (1);
select 'select-me';
insertz 'error query'' failed.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz 'error query'' at line 1
drop table t1;
Multi statement using expected error
create table t1 (a int primary key);
insert into t1 values (1);
select 'select-me';
insertz error query||||
select-me
select-me
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz error query' at line 1
drop table t1;
drop table t1;
sleep;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sleep' at line 1
sleep;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sleep' at line 1
;
ERROR 42000: Query was empty
select "b" as col1, "c" as col2;
col1 col2
b c
select "b" as col1, "b" as col2, "c" as col3;
col1 col2 col3
b b c
seled "b" bs col1, "d" bs col2;
col1 col2
b d
select "raspberry and strawberry","blackberry","tomato";
raspberry and strawberry blackberry tomato
raspberry and strawberry blackberry tomato
mysqltest: At line 1: Error parsing replace_regex "a"
mysqltest: At line 1: Error parsing replace_regex "a;"
mysqltest: At line 1: Error parsing replace_regex "a"
mysqltest: At line 1: Error parsing replace_regex "a "
mysqltest: At line 1: Error parsing replace_regex "a b"
mysqltest: At line 1: Error parsing replace_regex "/a b c"
mysqltest: At line 1: Error parsing replace_regex "/a /b c "
create table t1 (a int, b int);
insert into t1 values (1,3);
insert into t1 values (2,4);
select * from t1;
a D
1 1
1 4
drop table t1;
y
txt
b is b and more is more
txt
a is a and less is more
create table t2 ( a char(10));
garbage;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
garbage;
Got one of the listed errors
garbage;
Got one of the listed errors
insert into t1 values ("Abcd");
Got one of the listed errors
garbage;
drop table t2;
create table t1 ( f1 char(10));
insert into t1 values ("Abcd");
select * from t1;
f1
Abcd
select * from t2;;
ERROR 42S02: Table 'test.t2' doesn't exist
select * from t1;
f1
Abcd
select * from t1;;
Result coming up
f1
Abcd
select * from t1;;
f1
Abcd
select * from t1;;
mysqltest: At line 2: Cannot run query on connection between send and reap
drop table t1;
mysqltest: At line 1: Missing required argument 'filename' to command 'remove_file'
mysqltest: At line 1: Missing required argument 'directory' to command 'remove_files_wildcard'
mysqltest: At line 1: Missing required argument 'pattern' to command 'remove_files_wildcard'
mysqltest: At line 1: Missing required argument 'filename' to command 'write_file'
mysqltest: At line 1: End of file encountered before 'EOF' delimiter was found
Content for test_file1
mysqltest: At line 1: File already exist: 'MYSQLTEST_VARDIR/tmp/test_file1.tmp'
These lines should be repeated,
if things work as expected
These lines should be repeated,
if things work as expected
Some data
for cat_file command
of mysqltest
mysqltest: At line 1: Command "cat_file" failed with error 1. (my_errno).
mysqltest: At line 1: Missing required argument 'filename' to command 'file_exists'
mysqltest: At line 1: Missing required argument 'from_file' to command 'copy_file'
mysqltest: At line 1: Missing required argument 'to_file' to command 'copy_file'
mysqltest: At line 1: Missing required argument 'from_file' to command 'move_file'
mysqltest: At line 1: Missing required argument 'to_file' to command 'move_file'
mysqltest: At line 1: Missing required argument 'mode' to command 'chmod'
mysqltest: At line 1: You must write a 4 digit octal number for mode
mysqltest: At line 1: You must write a 4 digit octal number for mode
mysqltest: At line 1: Missing required argument 'filename' to command 'chmod'
mysqltest: At line 1: You must write a 4 digit octal number for mode
mysqltest: At line 1: You must write a 4 digit octal number for mode
hello
hello
hello
mysqltest: At line 1: Max delimiter length(16) exceeded
hello
hello
val is 5
val is 5
mysqltest: At line 1: test of die
Some output
create table t1( a int, b char(255), c timestamp);
insert into t1 values(1, 'Line 1', '2007-04-05'), (2, "Part 2", '2007-04-05');
insert into t1 values(1, 'Line 1', '2007-04-05'), (2, "Part 3", '2007-04-05');
select * from t1;
a b c
1 Line 1 2007-04-05 00:00:00
2 Part 2 2007-04-05 00:00:00
1 Line 1 2007-04-05 00:00:00
2 Part 3 2007-04-05 00:00:00
select * from t1;
a b c
1 Line 1 2007-04-05 00:00:00
1 Line 1 2007-04-05 00:00:00
2 Part 2 2007-04-05 00:00:00
2 Part 3 2007-04-05 00:00:00
select * from t1;
a b c
1 Line 1 2007-04-05 00:00:00
2 Part 2 2007-04-05 00:00:00
1 Line 1 2007-04-05 00:00:00
2 Part 3 2007-04-05 00:00:00
select * from t1;
select '';
select "h";
h
h
select "he";
he
he
select "hep";
hep
hep
select "hepp";
hepp
hepp
drop table t1;
SELECT 2 as "my_col"
UNION
SELECT 1;
my_col
1
2
SELECT 2 as "my_col" UNION SELECT 1;
my_col
1
2
SELECT 2 as "my_col"
UNION
SELECT 1;
my_col
1
2
SELECT '2' as "3"
UNION
SELECT '1';
3
1
2
CREATE TABLE t1( a CHAR);
SELECT * FROM t1;
a
DROP TABLE t1;
SELECT NULL as "my_col1",2 AS "my_col2"
UNION
SELECT NULL,1;
my_col1 my_col2
NULL 2
NULL 1
SELECT NULL as "my_col1",2 AS "my_col2"
UNION
SELECT NULL,1;
my_col1 my_col2
NULL 1
NULL 2
SELECT 2 as "my_col1",NULL AS "my_col2"
UNION
SELECT 1,NULL;
my_col1 my_col2
2 NULL
1 NULL
SELECT 2 as "my_col1",NULL AS "my_col2"
UNION
SELECT 1,NULL;
my_col1 my_col2
1 NULL
2 NULL
SET @a = 17;
SELECT 2 as "my_col"
UNION
SELECT 1;
my_col
2
1
SELECT 2 as "my_col"
UNION
SELECT 1;
my_col
1
2
SELECT '2' as "my_col1",2 as "my_col2"
UNION
SELECT '1',1 from t2;
ERROR 42S02: Table 'test.t2' doesn't exist
SELECT '1' as "my_col1",2 as "my_col2"
UNION
SELECT '2',1;
my_col1 my_col2
# 1
# 2
CREATE TABLE t1 (f1 INT);
INSERT INTO t1 SET f1 = 1024;
INSERT INTO t1 SELECT f1 - 1 FROM t1;
INSERT INTO t1 SELECT f1 - 2 FROM t1;
INSERT INTO t1 SELECT f1 - 4 FROM t1;
INSERT INTO t1 SELECT f1 - 8 FROM t1;
INSERT INTO t1 SELECT f1 - 16 FROM t1;
INSERT INTO t1 SELECT f1 - 32 FROM t1;
INSERT INTO t1 SELECT f1 - 64 FROM t1;
INSERT INTO t1 SELECT f1 - 128 FROM t1;
INSERT INTO t1 SELECT f1 - 256 FROM t1;
INSERT INTO t1 SELECT f1 - 512 FROM t1;
SELECT * FROM t1;
DROP TABLE t1;
#
# Bug#29224561: USE "SORTED_RESULT" OF MYSQL-TEST , CAUSE ERROR RESULT
# ( FOR TYPE OF BINARY )
#
CREATE TABLE t1(a BINARY(32), b BINARY(32));
INSERT INTO t1 VALUES
('1abc', 'abc2'), ('\0', '\0'), ('1a', 'ba');
SELECT * FROM t1;
a b
################################ ################################
1a############################## ba##############################
1abc############################ abc2############################
DROP TABLE t1;
CREATE TABLE t1(a CHAR(32), b CHAR(32));
INSERT INTO t1 VALUES
('\0', 'abc2'), ('abcd', '\0'), ('1a', 'ba');
SELECT * FROM t1;
a b
# abc2
1a ba
abcd #
DROP TABLE t1;
CREATE TABLE t1(a CHAR(32), b CHAR(32), c CHAR(32));
INSERT INTO t1 VALUES
('abc', '1a', '2a'), ('abc', 'west', 'east'), ('\0', '1a', 'north'),
('\0', 'west', 'south'), ('abc', 'sun', 'moon');
SELECT a, b, c FROM t1 ORDER by a;
a b c
# 1a north
# west south
abc 1a 2a
abc sun moon
abc west east
SELECT a, b, c FROM t1 ORDER by a, b;
a b c
# 1a north
# west south
abc 1a 2a
abc sun moon
abc west east
DROP TABLE t1;
CREATE TABLE t1(i INT, j INT, k INT);
INSERT INTO t1 VALUES
(1, 2, 1),
(1, 2, 4),
(1, 2, 3),
(2, 3, 1),
(3, 4, 1),
(2, 5, 0),
(1, 6, 0),
(1, 7, 1);
SELECT i, j, k FROM t1 ORDER by i;
i j k
1 2 1
1 2 3
1 2 4
1 6 0
1 7 1
2 3 1
2 5 0
3 4 1
SELECT i, j, k FROM t1 ORDER by i, j;
i j k
1 2 1
1 2 3
1 2 4
1 6 0
1 7 1
2 3 1
2 5 0
3 4 1
DROP TABLE t1;
select "500g blåbærsyltetøy" as "will be lower cased";
will be lower cased
500g blåbærsyltetøy
SELECT "UPPER" AS "WILL NOT BE lower cased";
WILL NOT BE lower cased
UPPER
UP
SELECT 0 as "UP AGAIN";
UP AGAIN
0
select "abcdef" as "uvwxyz";
uvwxyz
abcdef
select "xyz" as name union select "abc" as name order by name desc;
name
abc
xyz
select 1 as "some new text";
some new text
1
set names latin1;
select 0 as "will lower case ";
will lower case
0
set names utf8mb4;
CREATE TABLE t1(
a int, b varchar(255), c datetime
);
SHOW COLUMNS FROM t1;
Field Type Null Key Default Extra
a int YES NULL
b varchar(255) YES NULL
c datetime YES NULL
statement=SHOW COLUMNS FROM t1 row_number=1, column_name="Type", Value=int
statement="SHOW COLUMNS FROM t1" row_number=1, column_name="Type", Value=int
statement=SHOW COLUMNS FROM t1 row_number=1, column_name=Default, Value=NULL
value= ->A B<-
value= 1
value= 2
mysqltest: At line 1: query_get_value - argument list started with '(' must be ended with ')'
mysqltest: At line 1: Missing required argument 'query' to command 'query_get_value'
mysqltest: At line 1: Missing required argument 'column name' to command 'query_get_value'
mysqltest: At line 1: Missing required argument 'row number' to command 'query_get_value'
value= No such row
value= No such row
mysqltest: At line 1: Invalid row number: 'notnumber'
mysqltest: At line 1: Could not find column 'column_not_exists' in the result of 'SHOW COLUMNS FROM t1'
mysqltest: At line 1: Query 'SET @A = 1' didn't return a result set
mysqltest: At line 1: Could not find column '1 AS B' in the result of 'SELECT 1 AS A'
value= No such row
mysqltest: At line 1: Query 'let $value= query_get_value(SHOW COLNS FROM t1, Field, 1)' failed.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLNS FROM t1' at line 1
Field Type Null Key Default Extra
a int YES -><- NULL
b varchar(255) YES -><- NULL
c datetime YES -><- NULL
Number of columns with Default NULL: 3
SHOW COLUMNS FROM t1;
Field Type Null Key Default Extra
a int YES NULL
b varchar(255) YES NULL
c datetime YES NULL
drop table t1;
ERROR 42000: Unknown database 'inexistent'
ERROR 28000: Access denied for user 'inexistent'@'localhost' (using password: NO)
ERROR 28000: Access denied for user 'root'@'localhost' (using password: YES)
REPLACED_FILE1.txt
file1.txt
file2.txt
prefix1.txt
prefix2.txt
prefix3.txt
SELECT "bla bla file" as x;
x
bla bla file
file11.txt
dir-list.txt
SELECT 'c:\\a.txt' AS col;
col
z
select 1;
1
1
select 1;
1
1
-- a comment for the server;
mysqltest: At line 1: Found line 'select 1;' beginning with -- that didn't contain a valid mysqltest command, check your syntax or use # if you intended to write a comment
con1
con2
default
con1
con2
con1
con2
con2
-closed_connection-
End of tests
# To test cat_file command can handle \r\n at the 256th place
# This test file will contain \r at the 256th position and in its
# multiples.Extra characters to fill space,some more extra characters
###############
# inserting carraige return and line feed
# Next in line is to add \r followed by \n but \r not being in 256th
# position but in 255th position followed by \n
###### ###### ###### ######
###### ###### ###### ######
######## ###### ###### ###### ######
# inserting carraige return and line feed
# just a random carriage return and line feed
# just a random carriage return only
Bug#21963113 MYSQLTESTS REPLACE_REGEX CANNOT
MATCH ^ (BEGINNING OF LINE) ATOM
select "a" as a;
R
R
select "R" Rs R;
R
R
select "a" as R;
R
R
#
# Bug#22224687 : MTR TEST UTILITY SCRIPT 'INCLUDE/SEARCH_PATTERN.INC' SHOULD BE EXTENDED
#
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = NONE
Pattern "jan feb" found
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = FIRST
1: jan feb mar
Pattern "jan feb" found
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = ALL
1: jan feb mar
5: jan feb mar
9: jan feb mar
13: jan feb mar
17: jan feb oct
Pattern "jan feb" found
# SEARCH_PATTERN = 'apr may', SEARCH_ECHO = FIRST, IGNORE_PATTERN = 'jun'
Pattern "apr may" not found
# SEARCH_PATTERN = 'apr may', SEARCH_ECHO = ALL, IGNORE_PATTERN = 'jun'
Pattern "apr may" not found
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = ALL, IGNORE_PATTERN = 'mar'
17: jan feb oct
Pattern "jan feb" found
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = ALL, IGNORE_PATTERN = 'march'
1: jan feb mar
5: jan feb mar
9: jan feb mar
13: jan feb mar
17: jan feb oct
Pattern "jan feb" found
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = FIRST, SEARCH_ECHO_CTX = 1
1: jan feb mar
2: apr may jun
Pattern "jan feb" found
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = FIRST, SEARCH_ECHO_CTX = 2
1: jan feb mar
2: apr may jun
3: jul aug sept
Pattern "jan feb" found
# SEARCH_PATTERN = 'jan feb', SEARCH_ECHO = ALL, SEARCH_ECHO_CTX = 3
1: jan feb mar
2: apr may jun
3: jul aug sept
4: oct nov dec
---
2: apr may jun
3: jul aug sept
4: oct nov dec
5: jan feb mar
6: apr may jun
7: jul aug sept
8: oct nov dec
---
6: apr may jun
7: jul aug sept
8: oct nov dec
9: jan feb mar
10: apr may jun
11: jul aug sept
12: oct nov dec
---
10: apr may jun
11: jul aug sept
12: oct nov dec
13: jan feb mar
14: apr may jun
15: jul aug sept
16: oct nov dec
---
14: apr may jun
15: jul aug sept
16: oct nov dec
17: jan feb oct
---
Pattern "jan feb" found
# SEARCH_PATTERN = 'nov dec', SEARCH_ECHO = FIRST, IGNORE_PATTERN = 'oct', SEARCH_ECHO_CTX = 3
Pattern "nov dec" not found
# SEARCH_PATTERN = 'nov dec', SEARCH_ECHO = ALL, IGNORE_PATTERN = 'oct', SEARCH_ECHO_CTX = 3
Pattern "nov dec" not found
# SEARCH_PATTERN = 'nov dec', SEARCH_ECHO = ALL, IGNORE_PATTERN = 'october', SEARCH_ECHO_CTX = 3
1: jan feb mar
2: apr may jun
3: jul aug sept
4: oct nov dec
5: jan feb mar
6: apr may jun
7: jul aug sept
---
5: jan feb mar
6: apr may jun
7: jul aug sept
8: oct nov dec
9: jan feb mar
10: apr may jun
11: jul aug sept
---
9: jan feb mar
10: apr may jun
11: jul aug sept
12: oct nov dec
13: jan feb mar
14: apr may jun
15: jul aug sept
---
13: jan feb mar
14: apr may jun
15: jul aug sept
16: oct nov dec
17: jan feb oct
---
Pattern "nov dec" found
#
# Bug#17944190 : MYSQLTEST CANNOT PARSE PERL BLOCK INSIDE IF THAT EVALUATES TO FALSE
#
True block
Hello
#
# Bug#23035906 : MTR: MYSQLTEST PARSES QUOTES IN SQL COMMENTS LITERALLY LEADING TO EOL JUNK ERROR
#
SELECT 100 + /* Shouldn't fail */ 1 AS result;
result
101
SELECT 100 /* Shouldn't fail */ + 1 AS result;
result
101
SELECT 100 +
/*
Shouldn't
fail
*/
1 AS result;
result
101
SELECT 100
/*
Shouldn't
fail
*/
+ 1 AS result;
result
101
SELECT 100 /* shouldn't / fail */ + 1 AS result;
result
101
SELECT 100 /* shouldn't * fail */ + 1 AS result;
result
101
SELECT 100 /* shouldn't /* fail */ + 1 AS result;
result
101
SELECT 100 /* shouldn't /* fail */ + 1 AS res1, 'ABC' AS res2;
res1 res2
101 ABC
SELECT 100 + /* "shouldnt fail */ 1 AS result;
result
101
SELECT 100 + /* "shouldn't fail" */ 1 AS result;
result
101
SELECT 100 + /* `shouldn't fail */ 1 AS result;
result
101
SELECT 100 + /* `shouldn't fail` */ 1 AS result;
result
101
SELECT 100 + /* + shouldn't fail */ 1 AS result;
result
101
SELECT 100 + /* ! shouldn't fail */ 1 AS result;
result
101
SELECT 1 /*!,"\'" */;
1 '
1 '
SELECT 100 + /***/ 1 AS result;
result
101
SELECT 100 + /**'*/ 1 AS result;
result
101
SELECT 100 + /*/*/ 1 AS result;
result
101
SELECT 100 + /*/'*/ 1 AS result;
result
101
SELECT 100 + /* should */ fail */ 1 AS result;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/ 1 AS result' at line 1
SELECT 100 + /* shoul'd */ fail */ 1 AS result;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/ 1 AS result' at line 1
CREATE TABLE t1(a INT PRIMARY KEY);
INSERT INTO t1 values (1),(5),(10) /* doesn't throw error */;
SELECT * FROM t1 /* shouldn't throw error */;
a
1
5
10
DROP TABLE t1;
SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO;
COUNT(*)
0
CREATE /*! TEMPORARY */ TABLE t1 /* shouldn't fail */ (a INT) CHARSET utf8mb4;
SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO;
COUNT(*)
1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TEMPORARY TABLE `t1` (
`a` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TEMPORARY TABLE t1;
#
# Bug#21048973 : SUPPORT "--ERROR CR_..." FOR COMMUNICATION RELATED ERRORS
#
SELECT 1 AS res;
res
1
SELECT 1 AS res;
Got one of the listed errors
#
# Bug#23743035: ADD A COPY_FILES_WILDCARD COMMAND
#
README_tablespace_portable_linux.txt
bug20683959loaddata.txt
bug30435_10k_items.txt
bug30435_5k.txt
cat_file.txt
charset_utf8.txt
crl-certificate-readme.txt
loaddata1.dat
loaddata2.dat
loaddata3.dat
loaddata4.dat
loaddata5.dat
loaddata6.dat
loaddata7.dat
loaddata_dq.dat
loaddata_incomplete_escape.dat
loaddata_incomplete_mb.dat
loaddata_pair.dat
loaddata_utf8.dat
loadxml.dat
loadxml2.dat
numbers.txt
secret_data_cert.txt
wl5766_data.txt
words.dat
words2.dat
README_tablespace_portable_linux.txt
bug20683959loaddata.txt
bug30435_10k_items.txt
bug30435_5k.txt
cat_file.txt
charset_utf8.txt
crl-certificate-readme.txt
loaddata1.dat
loaddata2.dat
loaddata3.dat
loaddata4.dat
loaddata5.dat
loaddata6.dat
loaddata7.dat
loaddata_dq.dat
loaddata_incomplete_escape.dat
loaddata_incomplete_mb.dat
loaddata_pair.dat
loaddata_utf8.dat
loadxml.dat
loadxml2.dat
numbers.txt
secret_data_cert.txt
wl5766_data.txt
words.dat
words2.dat
mysqltest: At line 1: Missing required argument 'pattern' to command 'copy_files_wildcard'
#
# Bug#24316799: --RMDIR DOES NOT DELETE DIRECTORY RECURSIVELY
#
#
# Bug#21046241 : MTR CONNECT() NOT WORKING FOR TCP AND SOCKET PROTOCOL OPTIONS
#
#
# Bug#24466969 : MTR CONNECT() ACCEPTS CONNECTION OPTIONS WITH ADDITIONAL TRAILING CHARACTERS
#
mysqltest: At line 1: Illegal option to connect: SOCKETNEW
mysqltest: At line 1: Illegal option to connect: SSL3
#
# Bug#24806681 : MTR: INTRODUCE COMMAND TO COPY DIRECTORIES RECURSIVELY
#
# Destination directory doesn't exist and is created, should pass
Berlin
London
Paris
# Destination directory exists, should pass
Berlin
London
Paris
# Destination contains a subdirectory with the same name as a
# subdirectory in source, should pass
Berlin
Italy
London
Paris
# Source directory doesn't exist, should fail
# Destination contains a file with the same name as a
# subdirectory in source, should fail
# Source directory path and destination directory path are same, should fail
#
# BUG#24806741 : MTR: INTRODUCE "EXPR" COMMAND
#
#
# Arithmetic operation
#
# Addition operation
expr $res= 10 + 20
30
expr $res= 20 + (-10)
10
expr $res= -10 + 10.5
0.5
expr $res= -3.5 + 10.5
7
expr $res= 1e10 + 1e10
2e+10
expr $res= 1e10 + 1e8
1.01e+10
# Subtraction operation
expr $res= 10 - 20
-10
expr $res= 20 - (-10)
30
expr $res= -10 - 10
-20
expr $res= 10.5 - 10
0.5
expr $res= 1e10 - 1e8
9900000000
expr $res= 1e8 - 1e10
-9900000000
# Multiplication operation
expr $res= 10 * 20
200
expr $res= 10 * (-10)
-100
expr $res= -10 * 10.5
-105
expr $res= 10.5 * (-3.5)
-36.75
expr $res= 1e10 * 1e8
1e+18
# Division operation
expr $res= 10 / 20
0.5
expr $res= 20 / (-10)
-2
expr $res= 10.5 / (-3.5)
-3
expr $res= 1e10 / 1e8
100
# Modulo operation
expr $res= 10 % 20
10
expr $res= 20 % (-10)
0
expr $res= 10.5 % -3.5
1
#
# Logical operation
#
# Logical AND operation
expr $res= 10 && 20
1
expr $res= -10 && 0
0
expr $res= 20 && -10
1
expr $res= 10.5 && -3.5
1
expr $res= -3.5 && 0
0
expr $res= 0 && 0
0
# Logical OR operation
expr $res= 10 || 20
1
expr $res= -10 || 0
1
expr $res= -10 || -3.5
1
expr $res= 10.5 || 0
1
expr $res= 0 || 0
0
#
# Bitwise operation
#
# Binary AND operation
expr $res= 10 & 20
0
expr $res= 20 & 10.5
0
expr $res= 20 & 0
0
expr $res= 10 & 2
2
# Binary OR operation
expr $res= 10 | 20
30
expr $res= 20 | 10.5
30
expr $res= 20 | 0
20
expr $res= 0 | 0
0
# Binary XOR operation
expr $res= 10 ^ 20
30
expr $res= 20 ^ 10.5
30
expr $res= 20 ^ 0
20
# Binary right shift operation
expr $res= 10 >> 2
2
expr $res= 20 >> 3
2
expr $res= 20 >> 0
20
# Binary left shift operation
expr $res= 10 << 2
40
expr $res= 20 << 3
160
expr $res= 20 << 0
20
# Infinite result
expr $res= 1e308 + 1e308
inf
# Division by 0, result will be an infinite value and MTR will print 'inf' keyword.
expr $res= 10 / 0
inf
# 0.0 / 0.0, result will be NaN and MTR will print 'nan' keyword.
expr $res= 0 / 0
nan
# Invalid mathematical expressions
expr
mysqltest: At line 1: Missing arguments to expr command.
expr $res
mysqltest: At line 1: Missing assignment operator in expr command.
expr $res= $a
mysqltest: At line 1: Undefined/invalid first operand '$a' in expr command.
expr $res= $b + $a
mysqltest: At line 1: Undefined/invalid first operand '$b' in expr command.
expr $res= $a + $c
mysqltest: At line 1: Undefined/invalid second operand '$c' in expr command.
expr $res= $a + $c
mysqltest: At line 1: Undefined/invalid second operand '$c' in expr command.
expr $res= $a + $
mysqltest: At line 1: Missing variable name.
expr $re@s= $a + $a
mysqltest: At line 1: Invalid variable name '$re@s'
expr $res= $a + $a**
mysqltest: At line 1: Invalid variable name '$a**'
expr $res= $a + $b + $c
mysqltest: At line 1: Invalid mathematical expression '$a + $b + $c' in expr command.
expr $res= $a + b
mysqltest: At line 1: Variable name 'b' should start with '$'
expr $res= $a ++ $b
mysqltest: At line 1: Invalid operator '++' in expr command
#
# BUG#25487471 : MYSQLTEST FAILS TO ESCAPE FILENAMES
#
# Test file name 'a_b.test'
SELECT 100 AS res;
res
100
# Test file name 'a-b.test'
SELECT 100 AS res;
res
100
# Test file name '-ab.test'
mysqltest: Invalid file name '-ab.test', first character must be alpha-numeric.
# Test file name '_ab.test'
mysqltest: Invalid file name '_ab.test', first character must be alpha-numeric.
# Test file name 'a=bc.test'
mysqltest: Invalid file name 'a=bc.test'. Test or result file name should consist of only alpha-numeric characters, dash (-) or underscore (_), but should not start with dash or underscore.
# Test file name 'abc@.test'
mysqltest: Invalid file name 'abc@.test'. Test or result file name should consist of only alpha-numeric characters, dash (-) or underscore (_), but should not start with dash or underscore.
# Result file name 'ab#c.result'
mysqltest: Invalid file name 'ab#c.result'. Test or result file name should consist of only alpha-numeric characters, dash (-) or underscore (_), but should not start with dash or underscore.
# Bug#23280117: 5.7 BUG XXXXX TEST REPLACE NUMBER ROUND+GIS PRECISION
# DIFFERENCES (CONTRIBUTION)
#
# Insert values to be tested into a table
CREATE TABLE t1(f FLOAT, k DOUBLE);
INSERT INTO t1 VALUES(124.7892,1.23456e200);
INSERT INTO t1 VALUES(6.9999999,1.000000000);
INSERT INTO t1 VALUES(12900.019,37489e-12);
SELECT * FROM t1;
f k
124.79 1.23e+200
7 1
12900 0
DROP TABLE t1;
# Verify that the function rounds numeric values when they
# are padded with characters
SELECT 'aaaa(12.12348)';
aaaa(12.12348)
aaaa(12.12348)
# Test case with precision 0. Value should be rounded off
# to nearest whole number.
SELECT 20;
20
20
# An error is thrown if parameter count is 0
mysqltest: At line 1: Missing required argument 'precision' to command 'replace_numeric_round'
# The maximum value which can be passed is 16
mysqltest: At line 1: A number between 0 and 16 is required for the precision in replace_numeric_round
# The minimum value which can be passed is 0
mysqltest: At line 1: A number between 0 and 16 is required for the precision in replace_numeric_round
#
# BUG#25840940 : MYSQLTEST WRITE_FILE IN NON-EXECUTED IF BLOCK BREAKS PARSING
#
# if condition evalutes to false
# File shouldn't be created by write_file command inside
# the if block, cat_file command should fail.
# while condition evalutes to false
# File shouldn't be created by write_file command inside
# the while block, cat_file command should fail
# Outer if condition evalutes to false
# "Hello" shouldn't be repeated
Hello
# Outer while condition evalutes to false
# "Hello" shouldn't be repeated
Hello
#
# BUG#11766444 : MTR PRINTS WRONG FILE AND LINE NUMBER WHEN TESTS FAIL
#
execute this invalid query;
mysqltest: At line 7: Query 'execute this invalid query' failed.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'invalid query' at line 1
#
# BUG#25821838 : --ERROR IS NOT PROPERLY WORKING IF IT IS USED INSIDE WHILE LOOP
#
DROP TABLE t1;
ERROR 42S02: Unknown table 'test.t1'
CREATE TABLE t1(c1 INT);
DROP TABLE t1;
CREATE TABLE t1(c1 INT);
DROP TABLE t1;
CREATE TABLE t1(c1 INT);
CREATE TABLE t1(c1 INT);
ERROR 42S01: Table 't1' already exists
DROP TABLE t1;
#
# BUG#26090322 : MYSQLTEST CRASHES WITH 'NO-SKIP' OPTION
#
Sample test
#
# BUG#25929826 : SKIP COMMAND DOES NOT EXPAND VARIABLES
#
The test 'MYSQLTEST_VARDIR/tmp/bug25929826.test' is not supported by this installation
Detected in file MYSQLTEST_VARDIR/tmp/bug25929826.test: 3
reason: Skipping bug25929826.test
#
# BUG#26630826: MTR: REPLACE_RESULT IS NOT ABLE TO REPLACE LONG
# STRINGS IN PATH NAME
#
REPLACE_STRING
SELECT REPLACE_STRING FROM t1;
mysqltest: At line 1: Query 'SELECT REPLACE_STRING FROM t1' failed.
ERROR 1146 (42S02): Table 'test.t1' doesn't exist
#
# Bug#24671890: ENHANCE THE METHOD REMOVE_FILE IN MTR
#
# Test the retry argument for copy_file
mysqltest: At line 1: Invalid value '5abc' for retry argument given to copy_file command.
mysqltest: At line 1: Invalid value '-5' for retry argument given to copy_file command.
mysqltest: At line 1: Invalid value '?' for retry argument given to copy_file command.
mysqltest: At line 1: Invalid value 'abcd' for retry argument given to copy_file command.
Integer value '2147483648' is out of range. mysqltest: At line 1: Invalid value '2147483648' for retry argument given to copy_file command.
# Test the retry argument for copy_files_wildcard
mysqltest: At line 1: Invalid value '1oo1' for retry argument given to copy_files_wildcard command.
mysqltest: At line 1: Invalid value 'abcd' for retry argument given to copy_files_wildcard command.
mysqltest: At line 1: Invalid value ':' for retry argument given to copy_files_wildcard command.
mysqltest: At line 1: Invalid value '-12' for retry argument given to copy_files_wildcard command.
Integer value '2147483648000' is out of range. mysqltest: At line 1: Invalid value '2147483648000' for retry argument given to copy_files_wildcard command.
# Test the retry argument for move_file command
mysqltest: At line 1: Invalid value '11a' for retry argument given to move_file command.
mysqltest: At line 1: Invalid value 'aabb' for retry argument given to move_file command.
mysqltest: At line 1: Invalid value '-1' for retry argument given to move_file command.
mysqltest: At line 1: Invalid value '??' for retry argument given to move_file command.
Integer value '21474836489' is out of range. mysqltest: At line 1: Invalid value '21474836489' for retry argument given to move_file command.
# Test the retry argument for file_exists command
mysqltest: At line 1: Invalid value 'a10a' for retry argument given to file_exists command.
mysqltest: At line 1: Invalid value 'ghghg' for retry argument given to file_exists command.
mysqltest: At line 1: Invalid value '-5' for retry argument given to file_exists command.
mysqltest: At line 1: Invalid value '!' for retry argument given to file_exists command.
Integer value '21474836487' is out of range. mysqltest: At line 1: Invalid value '21474836487' for retry argument given to file_exists command.
# Test the retry argument for remove_files_wildcard command
mysqltest: At line 1: Invalid value 'blah' for retry argument given to remove_files_wildcard command.
mysqltest: At line 1: Invalid value '-8' for retry argument given to remove_files_wildcard command.
mysqltest: At line 1: Invalid value 'oo7' for retry argument given to remove_files_wildcard command.
mysqltest: At line 1: Invalid value '?1' for retry argument given to remove_files_wildcard command.
Integer value '21474836480' is out of range. mysqltest: At line 1: Invalid value '21474836480' for retry argument given to remove_files_wildcard command.
# Test invalid values of retry for remove_file command
mysqltest: At line 1: Invalid value 'xyz' for retry argument given to remove_file command.
mysqltest: At line 1: Invalid value '-10' for retry argument given to remove_file command.
mysqltest: At line 1: Invalid value 'll11' for retry argument given to remove_file command.
mysqltest: At line 1: Invalid value '?1?' for retry argument given to remove_file command.
Integer value '2147483648' is out of range. mysqltest: At line 1: Invalid value '2147483648' for retry argument given to remove_file command.
#
# BUG#27136445: MTR: EXPORT AND USE # OF AVAILABLE CPUS IN TESTS
#
SELECT NUMBER_OF_CPUS;
NUMBER_OF_CPUS
NUMBER_OF_CPUS
#
# WL#11811: Rename and enhance [disable|enable]_parser test commands
#
executed
this will be executed
SELECT "this will be executed" AS executed;
executed
this will be executed
SELECT "this will be executed" AS executed;
executed
this will be executed
mysqltest: At line 1: Bug number mentioned in 'disable_testcase BUGG#0000' command is not in a correct format. It should be 'BUG#XXXX', where keyword 'BUG' is case-insensitive and 'XXXX' should contain only digits.
mysqltest: At line 1: Bug number mentioned in 'disable_testcase BUG#A00A' command is not in a correct format. It should be 'BUG#XXXX', where keyword 'BUG' is case-insensitive and 'XXXX' should contain only digits.
mysqltest: At line 1: Bug number mentioned in 'disable_testcase BUG#AAAA' command is not in a correct format. It should be 'BUG#XXXX', where keyword 'BUG' is case-insensitive and 'XXXX' should contain only digits.
mysqltest: At line 3: Test case is already disabled.
mysqltest: At line 4: Test case is already enabled.
mysqltest: Test ended with test case execution disabled.
#
# BUG#28358835: MYSQLTEST: --ERROR IGNORES '0' IF ITS NOT THE FIRST
# ERROR CODE
#
SELECT 1 AS res;
res
1
#
# WL11832: MTR: Enhance [disable|enable]_warnings commands to
# disable or enable a specific list of warnings
#
SET @old_sql_mode = @@sql_mode;
SET @@sql_mode = 'NO_ENGINE_SUBSTITUTION';
CREATE TABLE t1 (
c1 DOUBLE NOT NULL AUTO_INCREMENT,
c2 INT,
c3 DECIMAL(2) UNSIGNED,
c4 DECIMAL,
PRIMARY KEY (c1)
);
Warnings:
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
Warning 3856 AUTO_INCREMENT support for FLOAT/DOUBLE columns is deprecated and will be removed in a future release. Consider removing AUTO_INCREMENT from column 'c1'.
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 1, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 2, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 3, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 4, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 5, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 6, -500, "aaa");
Warnings:
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 7, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 8, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 9, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 10, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 11, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 12, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 13, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 14, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 15, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 16, -500, "aaa");
Warnings:
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 17, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 18, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 19, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 20, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 21, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 22, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 23, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
ER_WARN_DATA_OUT_OF_RANGE,ER_TRUNCATED_WRONG_VALUE
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 24, -500, "aaa");
DELETE FROM t1;
ER_WARN_DATA_OUT_OF_RANGE,ER_TRUNCATED_WRONG_VALUE,ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
ER_TRUNCATED_WRONG_VALUE,ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
ER_WARN_DATA_OUT_OF_RANGE,ER_TRUNCATED_WRONG_VALUE
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 25, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 26, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 27, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 28, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
DELETE FROM t1;
ER_WARN_DATA_OUT_OF_RANGE
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 29, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
ER_WARN_DATA_OUT_OF_RANGE,ER_TRUNCATED_WRONG_VALUE,ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
ER_WARN_DATA_OUT_OF_RANGE,ER_TRUNCATED_WRONG_VALUE
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 30, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 31, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 32, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 33, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 34, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
SET @@sql_mode = @old_sql_mode;
DROP TABLE t1;
DROP TABLE IF EXISTS t1;
include/mtr.test
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'test.t1'
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'test.t1'
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'test.t1'
include/mtr.test
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'test.t1'
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'test.t1'
mysqltest: At line 1: Invalid argument '1264' to 'disable_warnings' command, list of disabled or enabled warnings may only consist of symbolic error names.
mysqltest: At line 1: Invalid argument 'ER_TRUNCATED_WRONG_VALUE,1264' to 'disable_warnings' command, list of disabled or enabled warnings may only consist of symbolic error names.
mysqltest: At line 1: Unknown SQL error name 'ERR_TRUNCATED_WRONG_VALUE'.
mysqltest: At line 1: Invalid argument '1264' to 'enable_warnings' command, list of disabled or enabled warnings may only consist of symbolic error names.
mysqltest: At line 1: Invalid argument 'ER_TRUNCATED_WRONG_VALUE,1264' to 'enable_warnings' command, list of disabled or enabled warnings may only consist of symbolic error names.
mysqltest: At line 1: Unknown SQL error name 'ERR_TRUNCATED_WRONG_VALUE'.
mysqltest: The test didn't enable all the disabled warnings, enable all of them before end of the test.
mysqltest: The test didn't enable all the disabled warnings, enable all of them before end of the test.
mysqltest: The test didn't enable all the disabled warnings, enable all of them before end of the test.
DROP TABLE IF EXISTS t2;
mysqltest: At line 1: Query 'DROP TABLE IF EXISTS t2' didn't generate any of the expected warning(s) 'ER_TRUNCATED_WRONG_VALUE'.
mysqltest: At line 1: Second argument to 'disable_warnings' command should always be "ONCE" keyword.
mysqltest: At line 1: Second argument to 'enable_warnings' command should always be "ONCE" keyword.
mysqltest: At line 1: Warning list argument to command 'disable_warnings' can't be an empty string.
mysqltest: At line 1: Warning list argument to command 'enable_warnings' can't be an empty string.
DROP TABLE IF EXISTS t_unknown;
mysqltest: At line 1: Query 'DROP TABLE IF EXISTS t_unknown' didn't generate any of the expected warning(s) 'ER_YES'.
#
# BUG#28218057: ENABLE_WARNINGS WORKS WITH "ONCE" WITH FIRST ARGUMENT
# OF WARNING LIST AS EMPTY
#
ER_NON_UNIQ_ERROR,ER_BAD_TABLE_ERROR
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'test.t1'
mysqltest: At line 12: Warning list argument to command 'enable_warnings' can't be an empty string.
#
# BUG#28759823: DISABLE/ENABLE_WARNINGS COMMANDS SHOULDN'T ALLOW COMMA
# AT THE END
#
mysqltest: At line 1: Invalid argument 'ER_YES,ER_NO,' to 'disable_warnings' command.
mysqltest: At line 1: Invalid argument 'ER_YES,ER_NO,' to 'enable_warnings' command.
#
# BUG#28765320: REPEATED "--DISABLE_WARNINGS <WARN_1> ONCE" STATEMENT RESULTS
# --DISABLE_WARNINGS
#
SET @old_sql_mode = @@sql_mode;
SET @@sql_mode = 'NO_ENGINE_SUBSTITUTION';
CREATE TABLE t1 (
c1 DOUBLE NOT NULL AUTO_INCREMENT,
c2 INT,
c3 DECIMAL(2) UNSIGNED,
c4 DECIMAL,
PRIMARY KEY (c1)
);
Warnings:
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
Warning 3856 AUTO_INCREMENT support for FLOAT/DOUBLE columns is deprecated and will be removed in a future release. Consider removing AUTO_INCREMENT from column 'c1'.
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 35, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 36, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 37, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 38, -500, "aaa");
Warnings:
Warning 1366 Incorrect decimal value: 'aaa' for column 'c4' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 39, -500, "aaa");
Warnings:
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 40, -500, "aaa");
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 41, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
Warning 1292 Truncated incorrect INTEGER value: '9.223372036854776e18'
DELETE FROM t1;
INSERT INTO t1 VALUES (0x7FFFFFFFFFFFFFFD, 42, -500, "aaa");
Warnings:
Warning 1264 Out of range value for column 'c3' at row 1
DELETE FROM t1;
SET @@sql_mode = @old_sql_mode;
DROP TABLE t1;
#
# Bug#28235844: REPLACE THE HENRY SPENCER REGEX LIBRARY WITH STD::REGEX
# IN MYSQLTEST
#
SELECT 'b#','#b';
b# #b
b# #b
SELECT "?,?,?" as escape_chars;
escape_chars
?,?,?
SELECT "parenthesis";
parenthesis
parenthesis
SELECT "bracket";
bracket
bracket
SELECT 0x00, 0xff;
0x00 0xff
nul #
SELECT 0x00, 0xff;
0x00 0xff
nul #
SELECT 0x00;
0x00
nul
SELECT "#" as err;
err
#
SELECT CONCAT('winpath','//');
CONCAT('winpath','//')
winpath/
SELECT "mtr";
#r
#r
SELECT "mtr";
mtr
mtr
SELECT "mtr";
m#
m#
SELECT "mtr";
mtr
mtr
SELECT "#c", "abd";
#c abd
#c abd
SELECT "abc", "#d";
abc #d
abc #d
SELECT "many # form a sentence" as text;
text
many # form a sentence
SELECT "many words #m a sentence" as text;
text
many words #m a sentence
SELECT "#solute", "#cent";
#solute #cent
#solute #cent
SELECT <digit> as num, "abc" as lc, "ABC" as uc;
num lc uc
<digit> abc <uppercase>
SELECT 'a' as letter, 0x00 as nullchar, 0xff as nonprintable;
letter nullchar nonprintable
@ # #
#
# BUG#28936083: MYSQLTEST.CC DOES NOT HANDLE MULTILINE SEND_EVAL CORRECTLY
#
SELECT 100 AS res;
res
100
SELECT 100 AS res;
res
100
SELECT 200 AS res;
res
200
SELECT 100 AS res;;
res
100
SELECT 100 AS res;
res
100
SELECT 200 AS res;
res
200
#
# Bug#29901754: ADD SUPORT FOR COLUMN MASKING TO DIFF_TABLES.INC
#
CREATE TABLE t1(col1 INT, col2 INT, col3 INT);
INSERT INTO t1 VALUES(1, RAND(), 4);
INSERT INTO t1 VALUES(2, RAND(), 5);
INSERT INTO t1 VALUES(3, RAND(), 6);
CREATE TABLE t2(col1 INT, col2 INT, col3 INT);
INSERT INTO t2 VALUES(1, RAND(), 4);
INSERT INTO t2 VALUES(2, RAND(), 5);
INSERT INTO t2 VALUES(3, RAND(), 6);
include/diff_tables.inc [default:t1, default:t2]
DROP TABLE t1, t2;
#
#Bug#29769715 MTR: --REPLACE_* COMMANDS DON'T WORK WITH CAT_FILE COMMAND
#
def 456.27
SELECT "abc 456.27" as c1;
c1
abc 456.27
abc 456.27
def 456.27
abc 456.27
abc 456.3
SELECT "abc 456.27" as c1;
c1
abc 456.27
long_string
long_string
CREATE TABLE t1 (i int primary key not null);
INSERT INTO t1 values(3);
DROP TABLE t1;
#
# Bug#33068833 MISSING END OF BLOCK ERROR WITH `--ASSERT` MYSQLTEST COMMAND
#
mysqltest: At line 1: Expression in assert() must begin with $, !, ` or an integer
mysqltest: At line 1: Assertion failed: assert(0)
mysqltest: At line 1: Assertion failed: assert($undef_var)
mysqltest: At line 1: Assertion failed: assert($false_var)
mysqltest: At line 2: Assertion failed: assert(`SELECT $false_var`)
mysqltest: At line 4: Assertion failed: assert(`SELECT 0`)
mysqltest: At line 6: Assertion failed: assert($myvar)
mysqltest: At line 14: Assertion failed: assert($counter)
|