Closed tplazaro closed 2 years ago
Hi, this might be a dumb question (sorry in advance - new to java). So let's say we have this create procedure line:
CREATE PROCEDURE SCHEMA.PROC_NAME ...
I am trying to parse the UNIT_NAME token but it only includes SCHEMA. How do I get the PROC_NAME string in this case?
Hi.
To get then "proc_name" you'll need to check the children of the UNIT_NAME node:
If variable called 'node' with a UNIT_NAME you can use node.getLastChild() to get the procedure name.
node.getLastChild()
Hi, this might be a dumb question (sorry in advance - new to java). So let's say we have this create procedure line:
CREATE PROCEDURE SCHEMA.PROC_NAME ...
I am trying to parse the UNIT_NAME token but it only includes SCHEMA. How do I get the PROC_NAME string in this case?