title: Sqlite database updating a row android
body: <p>I am developing an android app, in which I need update a column in a table based on the a certain where clause.Here is the code below,</p>
  
  <pre><code>public void updatethekeyofweeklycolumn(String profilename, String keystemp) 
  {
      SQLiteDatabase db = this.getWritableDatabase();
      ContentValues values = new ContentValues();
  
      values.put(Profile_keysofweekly, keystemp);
  
      db.update(TABLE_PROFILE_SETTINGS_FOR_WEEKLY, values,Profile_Name_for_weekly +" = "+profilename, null);
  }
  </code></pre>
  
  <p>The above code is working fine with where clause as null, but its throwing a force close with the whereclause is set. Is my Query wrong? </p>