Dear all, I apologize for my late reply. I realized that the current implementation could not imitate the oracle's precompiler. The attached example can be accepted by both precompilers, but building the c file made by ecpg fails.
For handling this source, we have to refactor some sources related with DECLARE STATEMENT. My draft amendment is converting the sentence from executable to declarative, that is: * change to operate only if a pgc file is precompiled * remove related code from ecpglib directory In this case, the namespace of a SQL identifier is file independent, and sources becomes more simple. I will start making patches. Do you have any comments or suggestions? Best Regards. Hayato Kuroda Fujitsu LIMITED
test.pgc:3:1: error: expected identifier or e(f before e{f token EXEC SQL DECLARE st1 STATEMENT; ^
test.pgc
Description: test.pgc