I have a script which contains all CREATE statements for my views, procedures and indicies.
This script is an export from IBExpert (Firebird 2.0 DB). That's not a special format, it's just a list of multiline CREATE statements:
Code: Select all
SET TERM ^ ;
CREATE PROCEDURE FOOO....
BEGIN
........
END^
CREATE PROCEDURE ...
TZSQLProcessor throws an exception: Incorrect token followed by ":".
That only happens if the script contains CREATE PROCEDURE statements. Firebird uses the following syntax to insert data into the result columns of a procedure: SELECT a, b, c FROM FOO INTO :a, :b, :c.
This is a very huge script which must be offen updated, exported and included as ressoure in my projects, so the best way would be a solution which does not require a rewrite of the script (different TERM symbols, escapes, ...)
I think the main problem is that ZEOS tries to parse the sql script which doesn't make sense in my case. Is it possible to send the complete script directly to the database via Zeos?