title: Mobile Safari HTML5 WebSQL SQLTransaction throws SQLError code=1 message='not an error', transaction fails
body: <p>I'm trying to populate an HTML5 WebSQL database from a set of SQL statements generated using (sqlite .dump mydb > file.sql)</p>
  
  <p>I am able to read in the file, and execute all of the SQL statements. However at the end of the transaction, the transaction fails with a SQLError (code=1, message='not an error').</p>
  
  <p>Now, from my investigations I see SQLite 'not an error' is SQLITE_DONE.</p>
  
  <p>So why is a SQLError being generated, and why is my transaction geting rolled back?</p>
  
  <p>The relavent Javascript fragment is below:</p>
  
  <pre><code>database = {
  
      /* Transaction Error Callback */
      error_callback: function(error)
      {
          console.log('Oops. '+error.message+' (Code '+error.code+')');
      },
  
      /* Transaction success callback */
      success_callback: function()
      {
          console.log('apparently a success!');
      },
  
      populate_exec_sql: function(tx)
      {           
          for (var i = 0; i &lt; lines.length; i++)   // lines = Global array of SQL statements
          {
              var query = lines[i].replace(/\n/g,'');
              //console.log(query);
              tx.executeSql(query);
          }
      },
  
      populate_db: function(lines)
      {
          db.transaction( database.populate_exec_sql, database.error_callback, database.success_callback );
      }
  }
  </code></pre>