I've this query for view:

SELECT BATCH, BS.FIELD1, BS.FIELD2 
from BATCHES 
left join P_BATCH_SUMMARY(BATCH) BS on 1=1

It works fine with Firebird 2.5, but not not on Firebird 2.1. Is it possible to circumvent this limitation with FB2.1?

有帮助吗?

解决方案

Given the fact that referencing selectable stored procedures inside views was introduced in Firebird 2.5 the only options you have are:

  1. Upgrade to Firebird 2.5
  2. Replace this view with an equivalent selectable stored procedure
  3. Replace usages of this view with the query itself
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top