I've read a few things on using the SelectArg on stackoverflow and the ORMLite documentation and i can't see what I'm doing wrong.
I'm searching the occupations table where the job field = "Athletes' Business Manager". As you can see it contains a single quote which I'm trying to escape using a SelectArg.
SelectArg occupationArg = new SelectArg(txtOccupation.getText().toString().trim());
Occupations occupation = CommonUtilities.getHelper(getApplicationContext()).getOccupationsDao().queryBuilder().where().eq(
Occupations.JOB_FIELD, occupationArg).queryForFirst();
The above code gives me the following error:
Unable to load driver details: SQL ex: Problems executing Android query: SELECT * FROM occupations
WHERE job
= 'Athletes' Business Manager'