~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to lib/GenTest/Constants.pm

merge from internal tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
@EXPORT = qw(
8
8
        STATUS_OK
9
9
        STATUS_UNKNOWN_ERROR
 
10
        STATUS_ANY_ERROR
 
11
 
10
12
        STATUS_EOF
11
13
        STATUS_ENVIRONMENT_FAILURE
12
14
 
 
15
        STATUS_CUSTOM_OUTCOME
 
16
 
13
17
        STATUS_WONT_HANDLE
 
18
        STATUS_SKIP
14
19
 
15
20
        STATUS_SYNTAX_ERROR
16
21
        STATUS_SEMANTIC_ERROR
38
43
 
39
44
        ORACLE_ISSUE_STILL_REPEATABLE
40
45
        ORACLE_ISSUE_NO_LONGER_REPEATABLE
 
46
        ORACLE_ISSUE_STATUS_UNKNOWN
 
47
 
 
48
        DB_UNKNOWN
 
49
        DB_MYSQL
 
50
        DB_POSTGRES
 
51
        DB_JAVADB
41
52
);
42
53
 
43
54
use constant STATUS_OK                          => 1;
44
55
use constant STATUS_UNKNOWN_ERROR               => 2;
45
56
 
46
 
use constant STATUS_EOF                         => 3;   # A module requested that the test is terminated without failure
 
57
use constant STATUS_ANY_ERROR                   => 3;   # Used in util/simplify* to not differentiate based on error code
 
58
 
 
59
use constant STATUS_EOF                         => 4;   # A module requested that the test is terminated without failure
47
60
 
48
61
use constant STATUS_WONT_HANDLE                 => 5;   # A module, e.g. a Validator refuses to handle certain query
 
62
use constant STATUS_SKIP                        => 6;   # A Filter specifies that the query should not be processed further
49
63
 
50
64
use constant STATUS_SYNTAX_ERROR                => 21;
51
65
use constant STATUS_SEMANTIC_ERROR              => 22;  # Errors caused by the randomness of the test, e.g. dropping a non-existing table
52
66
use constant STATUS_TRANSACTION_ERROR           => 23;  # Lock wait timeouts, deadlocks, duplicate keys, etc.
53
67
 
54
 
use constant STATUS_TEST_FAILURE                => 24;  # Boundary between genuine errors and false positives due to randomness
 
68
use constant STATUS_TEST_FAILURE                => 24;  # Boundary between genuine errors and false positives due to randomness
55
69
 
56
70
use constant STATUS_SELECT_REDUCTION            => 5;   # A coefficient to substract from error codes in order to make them non-fatal
57
71
 
58
72
use constant STATUS_ERROR_MISMATCH_SELECT       => 26;  # A SELECT query caused those erros, however the test can continue
59
73
use constant STATUS_LENGTH_MISMATCH_SELECT      => 27;  # since the database has not been modified
60
 
use constant STATUS_CONTENT_MISMATCH_SELECT     => 28;  # 
 
74
use constant STATUS_CONTENT_MISMATCH_SELECT             => 28;  # 
61
75
 
62
76
use constant STATUS_ERROR_MISMATCH              => 31;  # A DML statement caused those errors, and the test can not continue
63
77
use constant STATUS_LENGTH_MISMATCH             => 32;  # because the databases are in an unknown inconsistent state
69
83
 
70
84
use constant STATUS_ENVIRONMENT_FAILURE         => 34;  # A failure in the environment or the grammar file
71
85
 
 
86
use constant STATUS_CUSTOM_OUTCOME              => 35;  # Used for things such as signaling an EXPLAIN hit from the ExplainMatch Validator
 
87
 
72
88
use constant STATUS_SERVER_CRASHED              => 101;
73
89
 
74
90
use constant STATUS_SERVER_KILLED               => 102; # Willfull killing of the server, will not be reported as a crash
81
97
 
82
98
use constant ORACLE_ISSUE_STILL_REPEATABLE      => 1;
83
99
use constant ORACLE_ISSUE_NO_LONGER_REPEATABLE  => 0;
 
100
use constant ORACLE_ISSUE_STATUS_UNKNOWN        => 2;
 
101
 
 
102
use constant DB_UNKNOWN => 0;
 
103
use constant DB_MYSQL => 1;
 
104
use constant DB_POSTGRES => 2;
 
105
use constant DB_JAVADB => 3;
84
106
 
85
107
1;