ibcQuery, ibcSQL with ReadOnly Transaction

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
VICcus
Posts: 8
Joined: Fri 11 May 2012 10:13

ibcQuery, ibcSQL with ReadOnly Transaction

Post by VICcus » Sun 03 Apr 2016 13:31

Hi!

In generally I change the ibcTransactions params from ReadCommited to ReadOnlyReadCommited in my application for ibcQuery and ibcSQL.

If the sql contain insert / update, its not a readonly query. Ok.
But what's happen, when the sql contain DML statement, such as Alter Table, Set Statistics, ... ?

Thanks in advance.

VICcus
Posts: 8
Joined: Fri 11 May 2012 10:13

Re: ibcQuery, ibcSQL with ReadOnly Transaction

Post by VICcus » Sun 03 Apr 2016 14:14

Correction: DDL of course.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: ibcQuery, ibcSQL with ReadOnly Transaction

Post by ViktorV » Tue 05 Apr 2016 09:54

On attempt to execute DDL statements within the context of ReadOnlyReadCommited transaction, an error "attempted update during read-only transaction" will be generated.

VICcus
Posts: 8
Joined: Fri 11 May 2012 10:13

Re: ibcQuery, ibcSQL with ReadOnly Transaction

Post by VICcus » Tue 05 Apr 2016 13:16

OK, thanks.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: ibcQuery, ibcSQL with ReadOnly Transaction

Post by ViktorV » Wed 06 Apr 2016 05:35

If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

Post Reply