summaryrefslogtreecommitdiffstats
path: root/external/hsqldb/patches/disable-dump-script.patch
blob: 401dd38abc9a2e0d5b2b74ac71bb2536f43bc08d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/hsqldb/src/org/hsqldb/DatabaseCommandInterpreter.java	2023-02-13 11:08:11.297243034 +0000
+++ b/hsqldb/src/org/hsqldb/DatabaseCommandInterpreter.java	2023-02-13 13:49:17.973089433 +0000
@@ -403,6 +403,11 @@
                     throw Trace.error(Trace.INVALID_IDENTIFIER);
                 }
 
+                // added condition to avoid execution of spurious command in .script or .log file
+                if (session.isProcessingScript() || session.isProcessingLog()) {
+                    return new Result(ResultConstants.UPDATECOUNT);
+                }
+
                 dsw = new ScriptWriterText(database, token, true, true, true);
 
                 dsw.writeAll();