// update values in database
db.beginTransaction();
try{
-// db.execSQL("UPDATE " + ProviderTableMeta.FILE_TABLE_NAME +
-// " SET " + ProviderTableMeta.FILE_ACCOUNT_OWNER + " ='" +
-// account.name + "' " +
-// " WHERE " + ProviderTableMeta.FILE_ACCOUNT_OWNER + " ='" +
-// oldAccountName + "' " );
ContentValues cv = new ContentValues();
cv.put(ProviderTableMeta.FILE_ACCOUNT_OWNER, account.name);
int num = db.update(ProviderTableMeta.FILE_TABLE_NAME,
upgraded = true;
db.setTransactionSuccessful();
- Log_OC.i("SQL", "Updated account in database: old name == " + oldAccountName +
+ Log_OC.d("SQL", "Updated account in database: old name == " + oldAccountName +
", new name == " + account.name + " (" + num + " rows updated )");
} catch (SQLException e){
upgraded = false;