title: Committing transaction outside of stored procedure
body: <p>When doing 1 or more stored procedures, can you place a transaction around the procedure instead of inside of it? </p>
  
  <pre><code>$db-&gt;beginTransaction();
  
  $db-&gt;exec("call my_procedure()");
  $db-&gt;exec("call my_second_procedure()");
  
  $db-&gt;commit();
  </code></pre>
  
  <p>When doing the above (<code>pdo</code>), does the transaction commit after both calls, or does it auto commit after each call is run making <code>beginTransaction()</code> and <code>commit()</code> useless?</p>