android - Unable to update a particular column on SQLite -


i've been trying update on of column in database named column_name_period_end doesn't seem able to.

string[] enddate = new string[1]; enddate[0] = paraperioddetailspojoobj.getperiodenddate();  log.d("periodend.onclick()", "date: " + enddate[0]);  /*update table_name set column1=value, column2=value2,... some_column=some_value */  sqlitedatabase.update(dbstorage.table_name_periodstart, contentvalues, dbstorage.column_name_period_end+"=?", enddate); 

no error messages displayed suppose update statement having errors. :(

from docs:

update(string table, contentvalues values, string whereclause, string[] whereargs) 

so, putting array of contentvalues (which don't show, problem there) table defined table_name_periodstart, , selecting record update searching column defined column_name_period_end must equal enddate.

the way read question title i'm under impression want update column_name_period_end column enddate... if that's case sql incorrect.

otherwise, possibilities leap mind are:

1) constraints... have not null field defined , trying update null?
2) date format program differing 1 in database
3) there no matching record enddate searching in db


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -