Page 1 of 1

odbc_autocommit($conn, true) or odbc_commit($conn)?

Posted: Wed Dec 08, 2010 6:56 am
by darliinton
What is the right thing to do to commit a transaction using odbc in php, set autocommit to true or use the odbc_commit function?
Or else, what odbc_autocommit($conn, true) does with the data if it encounter an error in the middle of the commands... he abort everithing? he drop the error commands?

---

Qual é a maneira correta de se comitar uma transação usando o odbc no php, setar o autocommit para true ou usar o método odbc_autocommit?
Ou então, o que o odbc_autocommit($conn, true) faz com os dados se encontrar um erro no meio dos comandos... ele aborta tudo? ele remove apenas os comandos errados?