blob: 13e0213f7e5713d8e6db013bbe6985ccc5f2cbbc (
plain)
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
|
--- 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
@@ -392,31 +392,19 @@
*/
private Result processScript() throws IOException, HsqlException {
- String token = tokenizer.getString();
- ScriptWriterText dsw = null;
+ tokenizer.getString();
session.checkAdmin();
try {
if (tokenizer.wasValue()) {
- if (tokenizer.getType() != Types.VARCHAR) {
- throw Trace.error(Trace.INVALID_IDENTIFIER);
- }
-
- dsw = new ScriptWriterText(database, token, true, true, true);
-
- dsw.writeAll();
-
- return new Result(ResultConstants.UPDATECOUNT);
+ throw Trace.error(Trace.ACCESS_IS_DENIED);
} else {
tokenizer.back();
return DatabaseScript.getScript(database, false);
}
} finally {
- if (dsw != null) {
- dsw.close();
- }
}
}
|