Why does the TMyQuery create a new(internal) connection to get values on FetchAll = False? I've had problems with transactions... I update some values but I can't get them on transaction...
Can I set some property to cancel this creation?
Tato.
Problem with FetchAll = False and transactions
-
- Posts: 6
- Joined: Fri 16 Dec 2005 22:33
-
- Posts: 6
- Joined: Fri 16 Dec 2005 22:33
Hi,
I create a new class of TMyQuery and I put the code above in constructor create:
Unidirectional := True;
FIRecordSet.SetProp(prCreateConnection, False);
It seems that this solve my problem, but I've not tested it on totality. I'm not using thread and I only open TMyQuery, populate other dataset, and close TMyQuery. I don't connect controls on TMyQuery. Unidirectional(FetchAll=False) property is important to save memory.
Could I have future problems?
Sorry for my poor english.
Thank's
Tato.
I create a new class of TMyQuery and I put the code above in constructor create:
Unidirectional := True;
FIRecordSet.SetProp(prCreateConnection, False);
It seems that this solve my problem, but I've not tested it on totality. I'm not using thread and I only open TMyQuery, populate other dataset, and close TMyQuery. I don't connect controls on TMyQuery. Unidirectional(FetchAll=False) property is important to save memory.
Could I have future problems?
Sorry for my poor english.
Thank's
Tato.
-
- Posts: 6
- Joined: Fri 16 Dec 2005 22:33