Skip to content

Commit f044e85

Browse files
committed
Move trim before try so whitespace input is not treated as SQL.
1 parent fb500e2 commit f044e85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

console/src/main/java/com/arcadedb/console/Console.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ public void setOutput(final ConsoleOutput output) {
174174

175175
private boolean execute(String line) throws IOException {
176176
try {
177+
178+
line = line.trim();
179+
177180
if (line != null && !line.isEmpty()) {
178-
line = line.trim();
181+
179182
final String lineLowerCase = line.toLowerCase();
180183

181184
if (lineLowerCase.startsWith("begin"))

0 commit comments

Comments
 (0)