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
Operations

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: 29/Jun/11 01:39 PM
Component/s: Engine
Affects Version/s: 2.1.2
Fix Version/s: 2.5 Beta 2

Time Tracking:
Not Specified

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

Planning Status: Unspecified


 Description  « Hide
An attempt to compile PSQL block with:

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

gives:

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   Work Log   Change History   Version Control   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.