[fix](plsql) Fix plsql variable initialization (#33186)
This commit is contained in:
@ -208,7 +208,3 @@ SYSDATE: 'SYSDATE';
|
||||
VARIANCE: 'VARIANCE';
|
||||
|
||||
DOT2: '..';
|
||||
|
||||
LABEL_PL
|
||||
: ([a-zA-Z] | DIGIT | '_')* ':'
|
||||
;
|
||||
|
||||
@ -522,7 +522,7 @@ for_range_stmt : // FOR (Integer range) statement
|
||||
;
|
||||
|
||||
label_stmt :
|
||||
LABEL_PL
|
||||
IDENTIFIER COLON
|
||||
| LT LT IDENTIFIER GT GT
|
||||
;
|
||||
|
||||
|
||||
@ -2085,12 +2085,6 @@ public class Exec extends org.apache.doris.nereids.PLParserBaseVisitor<Integer>
|
||||
public Integer visitLabel_stmt(Label_stmtContext ctx) {
|
||||
if (ctx.IDENTIFIER() != null) {
|
||||
exec.labels.push(ctx.IDENTIFIER().toString());
|
||||
} else {
|
||||
String label = ctx.LABEL_PL().getText();
|
||||
if (label.endsWith(":")) {
|
||||
label = label.substring(0, label.length() - 1);
|
||||
}
|
||||
exec.labels.push(label);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ public class DorisRowResult implements RowResult {
|
||||
|
||||
@Override
|
||||
public boolean next() {
|
||||
if (eof) {
|
||||
if (eof || coord == null) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user