Code example for SQLiteException

Methods: toString

0
 
		db.execSQL(sql);
		db.execSQL(sql2);
		} 
		catch(SQLiteException e) {
	        Log.e("createerr",e.toString());
	    } 
	} 
 
	@Override 
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		if (oldVersion >= newVersion)
			return; 
 
		String sql = null;
		if (oldVersion == 1) 
			sql = "alter table " + TABLE + " add note text;";
		if (oldVersion == 2)
			sql = "";
 
		Log.d("EventsData", "onUpgrade	: " + sql);