1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Index: src/org/hsqldb/StatementCommand.java
===================================================================
--- a/hsqldb/src/org/hsqldb/StatementCommand.java (Revision 6638)
+++ b/hsqldb/src/org/hsqldb/StatementCommand.java (Revision 6639)
@@ -1008,6 +1008,10 @@
throw Error.error(ErrorCode.X_42507);
}
+ if (session.isProcessingScript() || session.isProcessingLog()) {
+ return Result.updateZeroResult;
+ }
+
if (name == null) {
return session.database.getScript(false);
} else {
@@ -1077,6 +1081,10 @@
throw Error.error(ErrorCode.X_42507);
}
+ if (session.isProcessingScript() || session.isProcessingLog()) {
+ return Result.updateZeroResult;
+ }
+
return ScriptLoader.loadScriptData(
session, pathName, mode, isVersioning.booleanValue());
} catch (HsqlException e) {
@@ -1102,6 +1110,10 @@
throw Error.error(ErrorCode.X_42507);
}
+ if (session.isProcessingScript() || session.isProcessingLog()) {
+ return Result.updateZeroResult;
+ }
+
return TextFileOps.loadTextData(session, textprops, table,
mode);
} catch (HsqlException e) {
@@ -1126,6 +1138,10 @@
throw Error.error(ErrorCode.X_42507);
}
+ if (session.isProcessingScript() || session.isProcessingLog()) {
+ return Result.updateZeroResult;
+ }
+
return TextFileOps.unloadTextData(session, textprops,
table);
} catch (HsqlException e) {
|