The following query fails:
SELECT * from table where jobid = 'foo';
Whereas the following is passing:
SELECT * from table where jobid LIKE '%foo';
SELECT * from table where trim(jobid) = 'foo';
We were suspecting some leading invisible characters before 'foo'. but the following queries went well:
SELECT left(jobid, 1) from table where jobid LIKE '%foo';
SELECT ascii(jobid) from table where jobid LIKE '%foo';
Please post the error code, also the plan for the different queries and the description of the table.
Can you check if rebuilding the table's indexes solves the issue? If so, send output of that operation.
Regards,
Juan José Santamaría Flecha