title: In an Android application and SQLite3 database, Is there any need to check if the updated data on the database is truly updated
body: <p>In an Android application and SQLite3 database,<br>
  Is there any need to check if the updated data on the database is truly updated or just successful transaction without any exception is enough?</p>
  
  <p>In other words, in the following code, is there any need for rawQuery with <strong><em>POSTS_SELECT_QUERY</em></strong> or not ?</p>
  
  <pre><code>public boolean update_C_Data(String mID,String mData)
      {
          boolean Fault_Flg = true;
          SQLiteDatabase db = getWritableDatabase();
  
          db.beginTransaction();
          try
          {
              ContentValues values = new ContentValues();
  
              values.clear();
              values.put(KEY_C_Data, mData);
              String[] mArgs = new String[]{mID};
              int rows = db.update(TABLE_C, values, KEY_C_ID +"= ?", mArgs);
  
              if (rows == 1)
              {
                  String POSTS_SELECT_QUERY =
                          String.format("SELECT * FROM %s WHERE %s = %s AND %s = %s;",
                                  TABLE_C,
                                  KEY_C_ID,
                                  "'"+mID+"'",
                                  KEY_C_Data,
                                  "'"+mData+"'"
                          );
  
                  Cursor mCursor = db.rawQuery(POSTS_SELECT_QUERY, null);
                  try
                  {
                      if (mCursor.getCount() == 1)
                      {
                      }
                      else
                      {
                          Fault_Flg = false;
                      }
                      db.setTransactionSuccessful();
                  }
                  finally
                  {
                      if (mCursor != null &amp;&amp; !mCursor.isClosed())
                      {
                          mCursor.close();
                      }
                  }
              }
              else
              {
                  Fault_Flg = false;
                  db.setTransactionSuccessful();
              }
          }
          catch (Exception e)
          {
              Fault_Flg = false;
          }
          finally
          {
              db.endTransaction();
          }
  
          return Fault_Flg;
      }
  </code></pre>