Issue Details (XML | Word | Printable)

Key: CORE-2538
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: Yakov Hrebtov
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
Firebird Core

PSQL doesnt allow to use singleton query result as input parameter of stored procedure when procedure accessed using 'execute procedure'

Created: 04/Jul/09 08:26 AM   Updated: 19/Jan/16 06:18 AM
Component/s: Engine
Affects Version/s: 2.1.2
Fix Version/s: 2.5 Beta 2

Environment: LI-V2.1.2.18118 Classic AMD64
Issue Links:

QA Status: Done successfully

 Description  « Hide
An attempt to compile PSQL block with:

execute procedure New_Procedure((select 1 from rdb$database));


Column does not belong to referenced table.
Dynamic SQL Error.
SQL error code = -206.
Subselect illegal in this context.

but 'select from...' compiles smoothly:

select 1
  from New_Procedure((select 1 from rdb$database))
  into :Foo;

ISQL allows both kind of calls.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pavel Cisar added a comment - 29/Jun/11 01:39 PM
QA test added.