src/evsql/evsql.c
branchnew-evsql
changeset 47 8c6c459eacb7
parent 45 424ce5ab82fd
child 52 f5037572c326
equal deleted inserted replaced
46:75cecfc4603b 47:8c6c459eacb7
   835 
   835 
   836     if (trans->query)
   836     if (trans->query)
   837         ERROR("cannot COMMIT because transaction is still busy");
   837         ERROR("cannot COMMIT because transaction is still busy");
   838     
   838     
   839     // query
   839     // query
   840     if (evsql_query(trans->evsql, trans, sql, _evsql_trans_commit_res, NULL) == NULL)
   840     if (evsql_query(trans->evsql, trans, sql, _evsql_trans_commit_res, trans) == NULL)
   841         goto error;
   841         goto error;
   842     
   842     
   843     // mark it as commited in case someone wants to abort it
   843     // mark it as commited in case someone wants to abort it
   844     trans->has_commit = 1;
   844     trans->has_commit = 1;
   845 
   845