Questions about "I can't have control of transaction&qu
Posted: 30.12.2005, 21:06
In my first message I can't make question about the problem and the questios are:
1. Why setting AutoCommit to false generate exception when I StartTransaction?
2. How can I have control of transaction without setting AutoCommit true?
The first message:
Hello,
I have a problem when a use StartTransaction with ZeosDBO on PostgreSQL 8.1. When I try to use TZConnection StartTransaction procedure with false AutoCommit propertie I receive "Invalid operation in non AutoCommit mode" exception. If I change AutoCommit to true, the exception doesn't appear, but when I StartTransaction and, for example, insert a row first and delete another row as a second operation, if the second operation cause an error, my first insert operation don't rollback.
Best regards,
François Oliveira
1. Why setting AutoCommit to false generate exception when I StartTransaction?
2. How can I have control of transaction without setting AutoCommit true?
The first message:
Hello,
I have a problem when a use StartTransaction with ZeosDBO on PostgreSQL 8.1. When I try to use TZConnection StartTransaction procedure with false AutoCommit propertie I receive "Invalid operation in non AutoCommit mode" exception. If I change AutoCommit to true, the exception doesn't appear, but when I StartTransaction and, for example, insert a row first and delete another row as a second operation, if the second operation cause an error, my first insert operation don't rollback.
Best regards,
François Oliveira