Cannot create Stored Procedure with Firebird Embedded 1.5
Posted: 31.10.2007, 14:32
Hi,
I try to create a stored procedure that has already worked with FB Embedded 1.5, Zeos 6.5.1, Delphi7 and WinXP.
Now (with Delphi 2007, Zeos 6.6.1, and Vista, but still FB Embed 1.5) the very same StoredProc fails. Strange: within the error message, all the local variables used in the script show up as "?"s. The error itself says that "?" is an unknown token (surprise, surprise).
For example,
SELECT col1 FROM tab1 INTO :localvar1 WHERE id_col=:localvar2
is shown in the error message like
SELECT col1 FROM tab1 INTO ? WHERE id_col=?
No wonder Firebird doesn't understand. Anybody got any ideas how to make it work?
ste_ba
I try to create a stored procedure that has already worked with FB Embedded 1.5, Zeos 6.5.1, Delphi7 and WinXP.
Now (with Delphi 2007, Zeos 6.6.1, and Vista, but still FB Embed 1.5) the very same StoredProc fails. Strange: within the error message, all the local variables used in the script show up as "?"s. The error itself says that "?" is an unknown token (surprise, surprise).
For example,
SELECT col1 FROM tab1 INTO :localvar1 WHERE id_col=:localvar2
is shown in the error message like
SELECT col1 FROM tab1 INTO ? WHERE id_col=?
No wonder Firebird doesn't understand. Anybody got any ideas how to make it work?
ste_ba