title: Why is rowsAffected not returning an integer
body: <p>I'm calling the executeSql statement for SQLite on iOS. I'm using the success [and error] callback methods so that I can confirm my number of records affected count.</p>
  
  <p>When it comes back, it's got the 3 variables defined correctly, but when I try and do an "if" check on the rowsAffected, it's not working because it thinks it's an object.</p>
  
  <p>This is in an Angular service...</p>
  
  <p>Here's my code:</p>
  
  <pre><code>    $DBService.ExecuteQuery(script, params,
          function (insertId, rowsAffected, rows) {
              window.logger.logIt("rowsAffected: " + rowsAffected.toString());
  
              if (rowsAffected !== 1) {
                  deferred.reject("Failed to update record. Query did not return 1 record affected.");
              } else {
                  deferred.resolve();
              }
          },
          function (error) {
              deferred.reject("Failed to update record. " + error.message);
          }
      );
  </code></pre>
  
  <p>When I break in my debugger and hover over the rowsAffected variable, it displays it as if it's a property of a class, where it shows: insertId, rowsAffected = 1, and rows. Those are the 3 parameters in the success callback. Why is it showing all 3 when I'm just hovering over the rowsAffected? Also, when I write to my console window (window.logger.logIt()), it displays it as [object object]. Again, that tells me it thinks it's a class, instead of the property of the class (or just a variable in my class).</p>
  
  <p>Can someone tell me what's going on here?</p>