提交 0e5a7ce9 authored 作者: Thomas Mueller's avatar Thomas Mueller

Tables without columns didn't work. (The use case for such tables is testing.)

上级 d2eddf62
......@@ -83,9 +83,12 @@ public class Analyze extends DefineCommand {
// if the connection is closed and there is something to undo
return;
}
Column[] columns = table.getColumns();
if (columns.length == 0) {
return;
}
Database db = session.getDatabase();
StatementBuilder buff = new StatementBuilder("SELECT ");
Column[] columns = table.getColumns();
for (Column col : columns) {
buff.appendExceptFirst(", ");
int type = col.getType();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论