Hi Wally
I have had great success in this area to write patches for Firebird applications using the ZSQLProcessor component. There are some tricks to make it work and I hope this helps you:
The delimiter property must be set to ^ (just not ; for obvious reasons)
The delimiter type must be set to dtSetTerm
There must be no spaces between lines in stored proc.
Populate the Script Param with something like below:
DECLARE EXTERNAL FUNCTION UDF_SOME_EXPORT
CSTRING(1024), CSTRING(1024)
RETURNS CSTRING(100)
ENTRY_POINT '_some_export'
MODULE_NAME 'EXPORT'^
CREATE PROCEDURE MONTH_NAME (
IMONTH Integer )
RETURNS (
MONTHNAME Varchar(30) )
AS
begin
if (imonth = 1) then monthname = 'JANUARY';
if (imonth = 2) then monthname = 'FEBRARY';
if (imonth = 3) then monthname = 'MARCH';
if (imonth = 4) then monthname = 'APRIL';
if (imonth = 5) then monthname = 'MAY';
if (imonth = 6) then monthname = 'JUNE';
if (imonth = 7) then monthname = 'JULY';
if (imonth =
then monthname = 'AUGUST';
if (imonth = 9) then monthname = 'SEPTEMBER';
if (imonth = 10) then monthname = 'OCTOBER';
if (imonth = 11) then monthname = 'NOVEMBER';
if (imonth = 12) then monthname = 'DECEMBER';
suspend;
end^
The example above has two statements which run in the script which I sent to my customers.
Have fun!