File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ private static TiDBCompositeDataType getColumnType(String typeString) {
251251 primitiveType = TiDBDataType .INT ;
252252 size = 1 ;
253253 break ;
254+ case "tinyint(2)" :
254255 case "tinyint(3)" :
255256 case "tinyint(4)" :
256257 primitiveType = TiDBDataType .INT ;
@@ -267,6 +268,7 @@ private static TiDBCompositeDataType getColumnType(String typeString) {
267268 size = 4 ;
268269 break ;
269270 case "blob" :
271+ case "mediumblob" :
270272 case "longblob" :
271273 case "tinyblob" :
272274 primitiveType = TiDBDataType .BLOB ;
Original file line number Diff line number Diff line change 55import sqlancer .Randomly ;
66import sqlancer .common .query .ExpectedErrors ;
77import sqlancer .common .query .SQLQueryAdapter ;
8+ import sqlancer .tidb .TiDBErrors ;
89import sqlancer .tidb .TiDBProvider .TiDBGlobalState ;
910import sqlancer .tidb .TiDBSchema .TiDBTable ;
1011
@@ -14,7 +15,7 @@ private TiDBAnalyzeTableGenerator() {
1415 }
1516
1617 public static SQLQueryAdapter getQuery (TiDBGlobalState globalState ) throws SQLException {
17- ExpectedErrors errors = new ExpectedErrors ();
18+ ExpectedErrors errors = ExpectedErrors . newErrors (). with ( TiDBErrors . getExpressionErrors ()). build ();
1819 TiDBTable table = globalState .getSchema ().getRandomTable (t -> !t .isView ());
1920 boolean analyzeIndex = !table .getIndexes ().isEmpty () && Randomly .getBoolean ();
2021 StringBuilder sb = new StringBuilder ("ANALYZE TABLE " );
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ private TiDBDeleteGenerator() {
1818 }
1919
2020 public static SQLQueryAdapter getQuery (TiDBGlobalState globalState ) throws SQLException {
21- ExpectedErrors errors = new ExpectedErrors ();
21+ ExpectedErrors errors = ExpectedErrors . newErrors (). with ( TiDBErrors . getExpressionErrors ()). build ();
2222 TiDBTable table = globalState .getSchema ().getRandomTable (t -> !t .isView ());
2323 TiDBExpressionGenerator gen = new TiDBExpressionGenerator (globalState ).setColumns (table .getColumns ());
2424 StringBuilder sb = new StringBuilder ("DELETE " );
You can’t perform that action at this time.
0 commit comments