提交 18657cb7 authored 作者: Alexander Paschenko's avatar Alexander Paschenko

Issue #434 - parse engine params in CREATE TABLE w/o engine explicitly specified

上级 d0282e54
...@@ -6124,6 +6124,8 @@ public class Parser { ...@@ -6124,6 +6124,8 @@ public class Parser {
} }
} else { } else {
command.setTableEngine(readUniqueIdentifier()); command.setTableEngine(readUniqueIdentifier());
}
}
if (readIf("WITH")) { if (readIf("WITH")) {
ArrayList<String> tableEngineParams = New.arrayList(); ArrayList<String> tableEngineParams = New.arrayList();
do { do {
...@@ -6131,8 +6133,6 @@ public class Parser { ...@@ -6131,8 +6133,6 @@ public class Parser {
} while (readIf(",")); } while (readIf(","));
command.setTableEngineParams(tableEngineParams); command.setTableEngineParams(tableEngineParams);
} }
}
}
// MySQL compatibility // MySQL compatibility
if (readIf("AUTO_INCREMENT")) { if (readIf("AUTO_INCREMENT")) {
read("="); read("=");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论