php - ActiveCollab Custom Insert/Update query issue -


i tried execute custom queries using db::execute() function passing query parameter function - update query on existing table. before running query checked connection object $connection = db::getconnection(); , returned connection identifier. while executing query returned bool true execute function, though changes not there in database table fields. if pass query wrong syntax, giving error.

is there rollback process going on in background update query statement in activecollab? if yes how stop rollback avoid changes done update query ?

could tell me issue here ?

all uncommitted transactions automatically rolled on script shutdown need make sure committing transactions opened:

try {   db::beginwork();    //    db::commit(); } catch(exception $e) {   db::rollback();   throw $e; } 

or:

db::transact(function() {   // }); 

if within nested transaction , outer transactions gets rolled back, updates rolled well.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -