Subject | Re: [firebird-support] View with procedure |
---|---|
Author | Daniel Rail |
Post date | 2004-02-09T13:57:37Z |
Hi,
At February 9, 2004, 08:20, DragosH wrote:
Most SPs are designed that they require at least one input parameter,
and you can't pass a parameter into a View from outside a View.
Otherwise a View would be just a simpler selectable SP.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)
At February 9, 2004, 08:20, DragosH wrote:
> Firebird RC8It's not a bug. Views don't support Stored Procedures, nor parameters.
> The next sql works just fine:
> select *
> FROM VA_OP Op
> left join split_nr(Trezorerie_NR) sp on 1=1
> but when I try to make a view:
> Invalid token.
> Dynamic SQL Error.
> SQL error code = -104.
> Token unknown - line 38, char 23.
> (.
> Why? It is a bug? Left join with a procedure in view is not
> supported?
Most SPs are designed that they require at least one input parameter,
and you can't pass a parameter into a View from outside a View.
Otherwise a View would be just a simpler selectable SP.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)