static int execSql(SQLiteDatabase db,String label,String finalSql,Object[] argArray) throws SQLException {
  try {
    db.execSQL(finalSql,argArray);
  }
 catch (  android.database.SQLException e) {
    throw SqlExceptionUtil.create("Problems executing " + label + " Android statement: "+ finalSql,e);
  }
  int result;
  SQLiteStatement stmt=null;
  try {
    stmt=db.compileStatement("SELECT CHANGES()");
    result=(int)stmt.simpleQueryForLong();
  }
 catch (  android.database.SQLException e) {
    result=1;
  }
 finally {
    if (stmt != null) {
      stmt.close();
    }
  }
  logger.trace("executing statement {} changed {} rows: {}",label,result,finalSql);
  return result;
}

static int execSql ( SQLiteDatabase db , String label , String finalSql , Object [ ] argArray ) throws SQLException { try { db . execSQL ( finalSql , argArray ) ; } catch ( android . database . SQLException e ) { throw SqlExceptionUtil . create ( "Problems executing " + label + " Android statement: " + finalSql , e ) ; } int result ; SQLiteStatement stmt = null ; try { stmt = db . compileStatement ( "SELECT CHANGES()" ) ; result = ( int ) stmt . simpleQueryForLong ( ) ; } catch ( android . database . SQLException e ) { result = 1 ; } finally { if ( stmt != null ) { stmt . close ( ) ; } } logger . trace ( "executing statement {} changed {} rows: {}" , label , result , finalSql ) ; return result ; }
execute some sql on the database and return the number of rows changed .
