提交 b8e58461 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 806d03db
...@@ -46,7 +46,7 @@ import org.h2.command.ddl.DropView; ...@@ -46,7 +46,7 @@ import org.h2.command.ddl.DropView;
import org.h2.command.ddl.GrantRevoke; import org.h2.command.ddl.GrantRevoke;
import org.h2.command.ddl.SetComment; import org.h2.command.ddl.SetComment;
import org.h2.command.ddl.TruncateTable; import org.h2.command.ddl.TruncateTable;
import org.h2.command.dml.Backup; import org.h2.command.dml.BackupCommand;
import org.h2.command.dml.Call; import org.h2.command.dml.Call;
import org.h2.command.dml.Delete; import org.h2.command.dml.Delete;
import org.h2.command.dml.ExplainPlan; import org.h2.command.dml.ExplainPlan;
...@@ -54,8 +54,8 @@ import org.h2.command.dml.Insert; ...@@ -54,8 +54,8 @@ import org.h2.command.dml.Insert;
import org.h2.command.dml.Merge; import org.h2.command.dml.Merge;
import org.h2.command.dml.NoOperation; import org.h2.command.dml.NoOperation;
import org.h2.command.dml.Query; import org.h2.command.dml.Query;
import org.h2.command.dml.RunScript; import org.h2.command.dml.RunScriptCommand;
import org.h2.command.dml.Script; import org.h2.command.dml.ScriptCommand;
import org.h2.command.dml.Select; import org.h2.command.dml.Select;
import org.h2.command.dml.SelectOrderBy; import org.h2.command.dml.SelectOrderBy;
import org.h2.command.dml.SelectUnion; import org.h2.command.dml.SelectUnion;
...@@ -429,7 +429,7 @@ public class Parser { ...@@ -429,7 +429,7 @@ public class Parser {
} }
private Prepared parseBackup() throws SQLException { private Prepared parseBackup() throws SQLException {
Backup command = new Backup(session); BackupCommand command = new BackupCommand(session);
read("TO"); read("TO");
command.setFileName(readString()); command.setFileName(readString());
return command; return command;
...@@ -3488,8 +3488,8 @@ public class Parser { ...@@ -3488,8 +3488,8 @@ public class Parser {
return command; return command;
} }
private RunScript parseRunScript() throws SQLException { private RunScriptCommand parseRunScript() throws SQLException {
RunScript command = new RunScript(session); RunScriptCommand command = new RunScriptCommand(session);
read("FROM"); read("FROM");
command.setFileName(readString()); command.setFileName(readString());
if(readIf("COMPRESSION")) { if(readIf("COMPRESSION")) {
...@@ -3507,8 +3507,8 @@ public class Parser { ...@@ -3507,8 +3507,8 @@ public class Parser {
return command; return command;
} }
private Script parseScript() throws SQLException { private ScriptCommand parseScript() throws SQLException {
Script command = new Script(session); ScriptCommand command = new ScriptCommand(session);
boolean data = true, passwords = true, settings = true, dropTables = false; boolean data = true, passwords = true, settings = true, dropTables = false;
if(readIf("NODATA")) { if(readIf("NODATA")) {
data = false; data = false;
...@@ -3828,6 +3828,10 @@ public class Parser { ...@@ -3828,6 +3828,10 @@ public class Parser {
read(","); read(",");
command.setOriginalTable(readString()); command.setOriginalTable(readString());
read(")"); read(")");
if(readIf("EMIT")) {
read("UPDATES");
command.setEmitUpdates(true);
}
return command; return command;
} }
......
...@@ -112,7 +112,7 @@ public abstract class Prepared { ...@@ -112,7 +112,7 @@ public abstract class Prepared {
return null; return null;
} }
protected void checkCancelled() throws SQLException { public void checkCancelled() throws SQLException {
// TODO strange code: probably checkCancelled should always be called on the session. fix & test after release 1.0 // TODO strange code: probably checkCancelled should always be called on the session. fix & test after release 1.0
if(command != null) { if(command != null) {
command.checkCancelled(); command.checkCancelled();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论