Skip to content

Commit 4073f6e

Browse files
committed
[MySQL] Fix warnings
1 parent 8cadaf8 commit 4073f6e

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/sqlancer/mysql/MySQLBugs.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ public class MySQLBugs {
1616
// https://bugs.mysql.com/bug.php?id=95894
1717
public static boolean bug95894 = true;
1818

19+
// https://bugs.mysql.com/bug.php?id=99135
20+
public static boolean bug99135 = true;
21+
1922
}

src/sqlancer/mysql/MySQLExpectedValueVisitor.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package sqlancer.mysql;
22

3+
import sqlancer.IgnoreMeException;
34
import sqlancer.mysql.ast.MySQLBetweenOperation;
45
import sqlancer.mysql.ast.MySQLBinaryComparisonOperation;
56
import sqlancer.mysql.ast.MySQLBinaryLogicalOperation;
@@ -37,14 +38,11 @@ private void print(MySQLExpression expr) {
3738
@Override
3839
public void visit(MySQLExpression expr) {
3940
nrTabs++;
40-
if (true) {
41-
throw new AssertionError("TODO");
41+
try {
42+
MySQLVisitor.super.visit(expr);
43+
} catch (IgnoreMeException e) {
44+
4245
}
43-
// try {
44-
// super.visit(expr);
45-
// } catch (IgnoreMeException e) {
46-
//
47-
// }
4846
nrTabs--;
4947
}
5048

src/sqlancer/mysql/gen/MySQLExpressionGenerator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ public MySQLExpression generateExpression(int depth) {
8989
}
9090
return new MySQLInOperation(expr, rightList, Randomly.getBoolean());
9191
case BINARY_OPERATION:
92-
if (true) {
93-
/* workaround for https://bugs.mysql.com/bug.php?id=99135 */
92+
if (MySQLBugs.bug99135) {
9493
throw new IgnoreMeException();
9594
}
9695
return new MySQLBinaryOperation(generateExpression(depth + 1), generateExpression(depth + 1),

0 commit comments

Comments
 (0)