Debian Codegraph @

mysql-test/suite/storage_engine/unexpected_result.inc

raw
1 #
2 # This include file prints a standard message about possibly unsupported functionality
3 # when a statement finished not as expected.
4 # Usage:
5 # --let $functionality = Foreign keys # optional
6 # --let $my_last_stmt = INSERT INTO t VALUES (1) # optional
7
8 --let $versions =
9
10 if (!$functionality)
11 {
12 --let $functionality = Functionality
13 }
14 if ($mysql_errname)
15 {
16 --let $result = finished with $mysql_errname
17 if ($mysql_errname == ER_SYNTAX_ERROR)
18 {
19 --let $functionality = $functionality or the syntax
20 }
21 if ($mysql_errname == ER_ILLEGAL_HA)
22 {
23 --let $functionality = $functionality or the syntax
24 --let $versions = unsupported
25 }
26 }
27 if (!$mysql_errname)
28 {
29 --let $result = succeeded unexpectedly
30 }
31 if (!$versions)
32 {
33 --let $versions = unsupported|malfunctioning, or the problem was caused by previous errors
34 }
35
36 --echo # ------------ UNEXPECTED RESULT ------------
37 if ($my_last_stmt)
38 {
39 --echo # [ $my_last_stmt ]
40 }
41 --echo # The statement|command $result.
42 --echo # $functionality or the mix could be $versions.
43 --echo # You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def.
44 --echo # Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
45 --echo # Also, this problem may cause a chain effect (more errors of different kinds in the test).
46 --echo # -------------------------------------------
47
48 --let $my_last_stmt =
49 --let $functionality =
50