forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMariaDBErrors.java
More file actions
22 lines (17 loc) · 831 Bytes
/
MariaDBErrors.java
File metadata and controls
22 lines (17 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package sqlancer.mariadb;
import sqlancer.common.query.ExpectedErrors;
public final class MariaDBErrors {
private MariaDBErrors() {
}
public static void addInsertErrors(ExpectedErrors errors) {
errors.add("Out of range");
errors.add("Duplicate entry"); // violates UNIQUE constraint
errors.add("cannot be null"); // violates NOT NULL constraint
errors.add("Incorrect integer value"); // e.g., insert TEXT into an int value
errors.add("Data truncated for column"); // int + plus string into int
errors.add("doesn't have a default value"); // no default value
errors.add("The value specified for generated column"); // trying to insert into a generated column
errors.add("Incorrect double value");
errors.add("Incorrect string value");
}
}