Questions tagged as 'rollback'

2
answers

How to rewind the git command add --all

I ended up using this command unduly, and added many files that I should not, wanted to go back to the previous state, the command git reset HEAD <file> returns only one file, and how many are unfeasible to use it. I added the direc...
asked by 06.12.2018 / 00:58
1
answer

commit / rollback in two tables with PDO

First of all, the code below works, there is no error (but possibly can be improved). I have the following method in PHP: <?php public function ajustarUnidadeServidor($ajusteExercicio){ try { $sqlInsert = "INSERT INTO tb_ajuste_...
asked by 30.09.2015 / 00:43
1
answer

TRANSACTION - How to correct a transport error?

I think you can understand what I'm trying to do there: This method will make a foreach for each item in my list of moves, and send each one as a parameter to the method that will save them in the DB. I need to use a Transaction to ens...
asked by 27.09.2017 / 07:18
2
answers

How to mount a Transaction with Commit and Rollback in Oracle?

I'm trying to set up a transaction in Oracle, but I do not know how to do a Rollback if there is an error in one of the querys. I searched some sites, but I did not find anything clear and simple that explained. I started doing this: DELETE...
asked by 20.03.2014 / 18:14
0
answers

First time using commit () and rollback ()

Good evening Personally, I use the code below to do two transactions on the bank: $sqlinsert = $mysqli->prepare("INSERT INTO tbl_pessoafisica(cpf,senha,nome,email,celular) VALUES (?,?,?,?,?)"); $sqlinsert ->bind_param('sssss', $cpf,$sen...
asked by 01.02.2018 / 02:55