title: Nested transactions - Rollback scenario
body: <pre><code>A(){
      con.begin;
      .........
      .........
      B();
      ........
      ........(con.rollback;)
      con.commit;
      }
  
      B{
      con.begin;
      .......
      .......
      con.commit;
      }
  </code></pre>
  
  <p>In the above code, I begin a new DB transaction at A(). It executes some transaction successfully. After that B() starts executing and it also executes some transaction successfully and now the control returns to A(). At this point some exception occurs and I do a rollback. I would like to know whether the transaction which succeeded in B() will rollback or not.</p>