xref: /aoo42x/main/hsqldb/patches/script.patch (revision 0b9d4b22)
1diff -ru misc/hsqldb/src/org/hsqldb/DatabaseCommandInterpreter.java misc/build/hsqldb/src/org/hsqldb/DatabaseCommandInterpreter.java
2--- misc/hsqldb/src/org/hsqldb/DatabaseCommandInterpreter.java	2008-05-27 14:26:44.000000000 +0200
3+++ misc/build/hsqldb/src/org/hsqldb/DatabaseCommandInterpreter.java	2023-02-19 15:28:44.167555700 +0100
4@@ -402,6 +402,9 @@
5                 if (tokenizer.getType() != Types.VARCHAR) {
6                     throw Trace.error(Trace.INVALID_IDENTIFIER);
7                 }
8+                if (session.isProcessingScript() || session.isProcessingLog()) {
9+                    return new Result(ResultConstants.UPDATECOUNT);
10+                }
11
12                 dsw = new ScriptWriterText(database, token, true, true, true);
13
14