You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sqlancer/MainOptions.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,12 @@ public class MainOptions {
54
54
@Parameter(names = "--exit-code-error", description = "The exit code that should be returned when an error is encountered (or a bug is found)")
55
55
privateinterrorExitCode = -1; // NOPMD
56
56
57
+
@Parameter(names = "--print-statements", description = "Print all statements to stdout, before they are sent to the DBMS (not yet implemented for all oracles)", arity = 1)
58
+
privatebooleanprintStatements; // NOPMD
59
+
60
+
@Parameter(names = "--print-succeeding-statements", description = "Print statements that are successfully processed by the DBMS to stdout (not yet implemented for all oracles)", arity = 1)
61
+
privatebooleanprintSucceedingStatements; // NOPMD
62
+
57
63
publicintgetMaxExpressionDepth() {
58
64
returnmaxExpressionDepth;
59
65
}
@@ -70,6 +76,20 @@ public boolean logEachSelect() {
70
76
returnlogEachSelect;
71
77
}
72
78
79
+
publicbooleanprintAllStatements() {
80
+
if (printSucceedingStatements && printStatements) {
81
+
thrownewAssertionError();
82
+
}
83
+
returnprintStatements;
84
+
}
85
+
86
+
publicbooleanprintSucceedingStatements() {
87
+
if (printStatements && printSucceedingStatements) {
0 commit comments