Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Disable automatic ROLLBACK
Message
From
26/10/2005 12:57:26
 
 
To
26/10/2005 12:02:26
General information
Fórum:
Visual FoxPro
Category:
Cliente/Servidor
Miscellaneous
ID da thread:
01060812
ID da mensagem:
01062281
Views:
17
>>>>>Any idea how to disable this automatic ROLLBACK ?
>>>>
>>>>use DB_TRANSAUTO and
>>>>- start the transaction with SQLEXEC(...,"BEGIN TRAN")
>>>>- ....
>>>>- end with SQLEXEC(...,"COMMIT TRAN") OR "ROLLBACK"
>
>Fabio,
>
>I found that SQLEXEC(... , "ROLLBACK" ) causes always GPF in VFP 7 & 9.
>I'm using latest ( 08.00.0102 ) Postgres ODBC driver.
>It seems that it is impossible to issue ROLLBACK command using SPT for Postgres SQL.

Andrus,
then:
if you use TRANSMANUAL the ODBC Driver it sends a ROLLBACK when a error happen
if you use TRANSAUTO and send a ROLLBACK the ODBC Driver it collapses.

Search for a alternative ODBC driver, or changes backend.

I don't use Postgres, but this is enough not to use in the future it.

To understand:
1. you could capture the flow of the commands ODBC
and to see what it happens before the collapse.

2. if you open a connection and send these two commands:
- sqlexec (, "BEGIN TRAN")
- sqlexec (, "ROLLBACK")
what does it happen?

Fabio
Previous
Responder
Mapa
View

Click here to load this message in the networking platform