forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add expected errors for stonedb (sqlancer#867)
* feat: add expected errors * feat: add expected errors
- Loading branch information
1 parent
2902882
commit b6cf5c0
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
package sqlancer.stonedb; | ||
|
||
import sqlancer.common.query.ExpectedErrors; | ||
|
||
public final class StoneDBErrors { | ||
private StoneDBErrors() { | ||
} | ||
|
||
public static void addExpectedExpressionErrors(ExpectedErrors errors) { | ||
// java.sql.SQLException: Incorrect DATE value: '292269055-12-02' | ||
errors.add("Incorrect DATE value: "); | ||
// java.sql.SQLException: Incorrect string value: '\xBC\xE7\xC9\x91\x05R...' for column 'c1' at row 1 | ||
errors.add("Incorrect string value: "); | ||
// java.sql.SQLException: Incorrect integer value: 'ST' for column 'c1' at row 1 | ||
errors.add("Incorrect integer value: "); | ||
// com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Truncated incorrect INTEGER value: '#Q' | ||
errors.add("Data truncation: Truncated incorrect INTEGER value: "); | ||
// com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: BIGINT value is out of range in | ||
// '-((`database0`.`t0`.`c1` >> (not(`database0`.`t0`.`c1`))))' | ||
errors.add("Data truncation: BIGINT value is out of range in "); | ||
// com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: BIGINT UNSIGNED value is out of range in | ||
// '(`database10`.`t0`.`c0` + (`database10`.`t0`.`c0` & (not(0.5))))' | ||
errors.add("Data truncation: BIGINT UNSIGNED value is out of range in "); | ||
// com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect time value: '0Sly6xqF0' for | ||
// column 'c1' at row 1 | ||
errors.add("Data truncation: Incorrect time value: "); | ||
// com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: DOUBLE value is out of range in | ||
// '(`database0`.`t0`.`c0` * `database0`.`t0`.`c0`)' | ||
errors.add("Data truncation: DOUBLE value is out of range in "); | ||
// java.sql.SQLException: Numeric result of an expression is too large and cannot be handled by tianmu. | ||
errors.add("Numeric result of an expression is too large and cannot be handled by tianmu."); | ||
// java.sql.SQLSyntaxErrorException: Unknown column '1020726100' in 'order clause' | ||
errors.add("Unknown column "); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters