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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
darliinton
Forum Newbie
Posts: 1
Joined: Wed Dec 08, 2010 6:49 am

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

Post 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?
Post Reply