Skip to content

Commit f3f44c3

Browse files
committed
fix bug in CREATE TABLE
1 parent d23afd5 commit f3f44c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlancer/common/query/SQLQueryAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private String canonicalizeString(String s) {
4646
}
4747

4848
private void checkQueryString() {
49-
if (query.contains("CREATE TABLE") && !couldAffectSchema) {
49+
if (query.contains("CREATE TABLE") && !query.startsWith("EXPLAIN") && !couldAffectSchema) {
5050
throw new AssertionError("CREATE TABLE statements should set couldAffectSchema to true");
5151
}
5252
}

0 commit comments

Comments
 (0)