Subject | Re: [ib-support] concatenation with || when calling SP |
---|---|
Author | Helen Borrie |
Post date | 2001-11-21T09:23:22Z |
At 08:17 AM 21-11-01 +0000, you wrote:
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>Hi,Yes, you cannot pass an expression as a parameter value, only a constant.
>
>(FB1.0.0RC1/Win2000)
>I have a SP with a string as parameter:
>
> create procedure my_sp ( p_value varchar ( 4096 ))
> as
> begin
> /* do something */
> end
>
>When giving an concatenated string to this SP as parameter:
>
> execute procedure my_sp( 'string a' || 'string b')
>
>I get the following error message:
>ISC ERROR CODE:335544569
>
>ISC ERROR MESSAGE:
>Dynamic SQL Error
>SQL error code = -104
>Token unknown - line 1, char 60
>||
>
>Is it really forbidden to use || when calling a SP?
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________