Skip to content

Commit

Permalink
Revert "[KYUUBI #4619] Fix beeline with -e When there are other SQL s…
Browse files Browse the repository at this point in the history
…tatements before the source statement, the source statement cannot be executed normally"

This reverts commit fadb802.
  • Loading branch information
turboFei committed Jun 15, 2023
1 parent e5e3c31 commit f846460
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ private String[] tokenizeCmd(String cmd) {
}

private boolean isSourceCMD(String cmd) {
cmd = cmd.trim();
if (cmd == null || cmd.isEmpty()) return false;
String[] tokens = tokenizeCmd(cmd);
return tokens[0].equalsIgnoreCase("source");
}

private boolean sourceFile(String cmd) {
cmd = cmd.trim();
String[] tokens = tokenizeCmd(cmd);
String cmd_1 = getFirstCmd(cmd, tokens[0].length());

Expand Down

0 comments on commit f846460

Please sign in to comment.