Subject | Re: [firebird-support] sql within udf |
---|---|
Author | Ann W. Harrison |
Post date | 2006-10-10T15:25:09Z |
Nick Upson wrote:
create and read blobs but can't do general database operations without
creating its own connection and transaction. That transaction will
conflict with other transactions, including the one that fired the
UDF. The exception for blobs occurs because temporary blobs are
created outside the transaction space and materialized only when the
blob id is stored in a record. Similarly, blobs can be read from a
blob id outside transaction context.
Regards,
Ann
> I seem to recall that there is a reason not to do sql within a udf butYes. A UDF doesn't have transaction or connection context. It can
> I can't find the reference, can anyone enlighten me?
>
create and read blobs but can't do general database operations without
creating its own connection and transaction. That transaction will
conflict with other transactions, including the one that fired the
UDF. The exception for blobs occurs because temporary blobs are
created outside the transaction space and materialized only when the
blob id is stored in a record. Similarly, blobs can be read from a
blob id outside transaction context.
Regards,
Ann