#1 2015-08-11 07:47:01

willo
Member
From: Cape Town, South Africa
Registered: 2014-11-15
Posts: 67
Website

TSQLDBConnection on xxx should be connected

When fiddling around with transaction handling in Firebird 1.5, using ZEOS, we ran in to an issue where the transaction was not committed and we had to force a commit.

Digging around I found:
fDbConnection.MainConnection.StartTransaction;

Which worked pretty well in the unit tests, but testing it in a service produced an exception:
TSQLDBConnection on xxx should be connected

Forcing the connection before calling StartTransaction resolves the issue, but I'm wondering why TSQLDBConnection behaves this way.

Offline

#2 2015-08-11 08:05:24

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: TSQLDBConnection on xxx should be connected

Offline

#3 2015-08-11 08:10:56

willo
Member
From: Cape Town, South Africa
Registered: 2014-11-15
Posts: 67
Website

Re: TSQLDBConnection on xxx should be connected

Hi Michal,

We're using ZEOSDBO-7.1.4-stable, is 7.2 stable enough to upgrade to?

Offline

#4 2015-08-11 09:38:13

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: TSQLDBConnection on xxx should be connected

willo wrote:

We're using ZEOSDBO-7.1.4-stable, is 7.2 stable enough to upgrade to?


Yes.
Install and write if something changed.
Some time ago there was a big change in transactions for Firebird in ZEOS 7.2.
In addition, the ZEOS 7.2 should be faster and have fewer errors.

Michal

Last edited by miab3 (2015-08-11 10:21:49)

Offline

Board footer

Powered by FluxBB