Skip to content

Commit

Permalink
feat: add expected errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenglinli committed Jul 15, 2023
1 parent d7f1095 commit 6b354ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sqlancer/stonedb/gen/StoneDBTableInsertGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ private SQLQueryAdapter getQuery() {
}

private void addExpectedErrors() {
// java.sql.SQLException: Incorrect DATE value: '292278994-08-17'
errors.add("Incorrect DATE value: '");
// java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '1970-01-14' for key 'PRIMARY'
errors.add("Duplicate entry ");
// com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'c0' at row
Expand Down

0 comments on commit 6b354ed

Please sign in to comment.