Parse exception for function call in default clause
Status: Alpha
Brought to you by:
altumano
When I try to process following code then It generates
net.sourceforge.pldoc.parser.ParseException: Encountered "COALESCE" at line 3, column 72.
Last consumed token: "DEFAULT"
This plsql code is simplified - the real code is much complicated and with javadoc comments but it still generates the same error.
CREATE OR REPLACE PACKAGE chargerefund_pkg IS
PROCEDURE CreateSGContact(
inIDLanguage IN bc_transactionmsg.IDLanguage%TYPE DEFAULT COALESCE(bc_weboffice_helpers_pkg.grEnvironment.IDLanguage, bc_core_parameters_pkg.ID_NATIONAL_LANGUAGE)
);
END;
This should be fixed in 0.9.1 and above
Test file created and parses successfully:
"
./pldoc.sh -d /tmp/bugs src/test/resources//testinput//bugs/pldoc-3366296.sql
PLDoc version: 0.9.4-SNAPSHOT
Directory "/tmp/bugs" does not exist, creating ...
Generating HTML files ...
Generating allschemas.html ...
Generating summary.html ...
Generating generator.html ...
Generating deprecated-list.html ...
Generating index-list.html ...
Generating allpackages.html ...
Generating index.html ...
Generating <unit>.html ...
1 packages processed successfully.
Done (1.302 seconds).
primary:trunk sturton$ ls -ltr /tmp
lrwxr-xr-x@ 1 root wheel 11 20 Jul 19:51 /tmp -> private/tmp
primary:trunk sturton$ ls -ltr /tmp/bugs/
total 104
-rw-r--r-- 1 sturton wheel 1094 9 Sep 22:12 stylesheet.css
-rw-r--r-- 1 sturton wheel 630 9 Sep 22:12 application.xml
-rw-r--r-- 1 sturton wheel 5495 9 Sep 22:12 application.dtd
-rw-r--r-- 1 sturton wheel 2058 9 Sep 22:12 summary.html
-rw-r--r-- 1 sturton wheel 460 9 Sep 22:12 index.html
-rw-r--r-- 1 sturton wheel 3719 9 Sep 22:12 index-list.html
-rw-r--r-- 1 sturton wheel 1941 9 Sep 22:12 generator.html
-rw-r--r-- 1 sturton wheel 1828 9 Sep 22:12 deprecated-list.html
-rw-r--r-- 1 sturton wheel 4251 9 Sep 22:12 chargerefund_pkg.html
-rw-r--r-- 1 sturton wheel 487 9 Sep 22:12 allschemas.html
-rw-r--r-- 1 sturton wheel 505 9 Sep 22:12 allpackages.html
l
"