dbTalk Databases Forums  

PSQL 7.94 and .NET transactions concurrency issue

comp.databases.btrieve comp.databases.btrieve


Discuss PSQL 7.94 and .NET transactions concurrency issue in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DDD
 
Posts: n/a

Default PSQL 7.94 and .NET transactions concurrency issue - 12-15-2004 , 05:35 PM






We found out that we cannot start OdbcTransaction with optimistic locking
from .NET apllication. Default behaviour seems to be pesimistic isolation
level. When we try to explicitly set connection to use isollation level for
optimistic locking, Pervasive ODBC driver returns error condition. MS states
that transactions in .NET are designed for optimistic locking, but it does
not work with PSQL.
Most probably it also causes strange behaviour with transactions - if
someone kills connection to PSQL in the middle of transaction (ie. through
PSQL monitor), it happens that .NET opens new connection and runs rest of
the code in out of transaction connection, so new changes are commited
immediately. When it comes to Commit statement it founds out that connection
is dead and reports exception, so first uncommited part of transaction is
rejected.

Damir Dadasoviæ




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.