Subject | Re: [firebird-support] Error while trying to create stored procedure - invalid request BLR at offset 218 |
---|---|
Author | Helen Borrie |
Post date | 2007-11-15T13:59:23Z |
At 11:41 PM 15/11/2007, you wrote:
(SUBSTRING((:VENDA_ID) FROM 1 FOR 16) || SUBSTRING((:FINANCEIRO_ID) FROM 17),
Goodnight.
./heLen
>Hi,My eyes are too tired to do the counting, but count the characters from the beginning up to the 218th byte and I think you might land in the marked place:
>
>I'm trying to create a stored procedure from a delphi application and I'm
>getting this error:
>
>*invalid request BLR at offset 218
>undefined message number
>*This is my stored procedure's code:*If you apply SUBSTRING() to an expression you need an extra pair of brackets enclosing the expression, viz.
>*
>VALUES
> (SUBSTRING(: <--- VENDA_ID FROM 1 FOR 16) || SUBSTRING(:FINANCEIRO_ID FROM 17),
(SUBSTRING((:VENDA_ID) FROM 1 FOR 16) || SUBSTRING((:FINANCEIRO_ID) FROM 17),
Goodnight.
./heLen