You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplified Query Example, focusing on the failing feature
DECLARE
num NUMBER;
BEGIN
num := 10;
dbms_output.put_line('The number is ' || num);
END;
Exception
net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "num" <S_IDENTIFIER>
at line 2, column 4.
Was expecting one of:
"@"
"@@"
Additional context
The used JSQLParser Version: 4.6
State the applicable RDBMS and version: Oracle 19c
Links to the reference documentation: N/A
The text was updated successfully, but these errors were encountered:
Those blocks exceed normal SQL Standard and can become very complex. See the example below.
You will need to provide or sponsor an implementation to get those blocks supported. It will be some serious work.
DECLARE
l_message
VARCHAR2 (100) :='Hello';
BEGIN
DECLARE
l_message2 VARCHAR2 (100) :=
l_message ||' World!';
BEGINDBMS_OUTPUT.put_line (l_message2);
END;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line
(DBMS_UTILITY.format_error_stack);
END;
Grammar or Syntax Description
DECLARE
clause is not supported yetSQL Example
Additional context
The used JSQLParser Version: 4.6
State the applicable RDBMS and version: Oracle 19c
Links to the reference documentation: N/A
The text was updated successfully, but these errors were encountered: