Skip to content

Commit

Permalink
test5
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Mar 1, 2024
1 parent 8037bda commit c2094c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions fe/fe-core/src/main/java/org/apache/doris/plsql/Exec.java
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,7 @@ public Integer visitStmt(StmtContext ctx) {
@Override
public Integer visitDoris_statement(Doris_statementContext ctx) {
Integer rc = exec.stmt.statement(ctx);
console.printError("test3");
// Sometimes the query results are not returned to the mysql client,
// such as declare result; select … into result;
resultListener.onFinalize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public void onEof() {

@Override
public void onFinalize() {
// If metadata not null, it means that mysql channel sent query results.
if (metadata == null) {
return;
}
Expand Down Expand Up @@ -195,7 +196,7 @@ public void flushConsole() {
ConnectContext ctx = processor != null ? processor.getConnectContext() : ConnectContext.get();
boolean needSend = false;
if (error.length() > 0) {
ctx.getState().setError(getLastErrorCode().toString() + ", " + error.toString());
ctx.getState().setError(getLastErrorCode(), error.toString());
needSend = true;
} else if (msg.length() > 0) {
ctx.getState().setOk(0, 0, msg.toString());
Expand Down

0 comments on commit c2094c0

Please sign in to comment.