I have a text string that in the database is lowercase, but (sometimes!) when I do a query the datagrid displays it as UPPERCASE (and sometimes it displays it as correct lowercase) . How do I forcethe datagrid to ALWAYS display it as it is in the database?
This query – selecting for lowercase ‘werner’ returns this record BUT (incorrectly) displays the manufacturer as UPPERCASE:
If you are using the Oracle’s data masking feature/add-on you can also cause something like this to happen. It allows one to specify the rules on how data returned to apps like toad see the data - with common use to mask off data like credit card #'s (************1234), or to apply substitution logic using regular expressions, or to apply functions like upper to the return results. This would happen in the database - so apps like toad would not know.
That Oracle features is referred to as “redaction” and toad 12.1 has the ability to see if that’s been defined on the table and/or columns. I see you’re only on toad 11 - but I thought I’d add the proper name for people to look up and mention that it is supported in toad for those who want to test drive it
Your WHERE clause is testing 'werner' against the as_mfgr_code, but your screenshot is showing the manufacturer column. They are two different fields.
On 05/01/2014 02:28 PM, sandy wrote:
TOAD datagrid is not always displaying text in the correct case
Thread created by sandy
Toad for Oracle Professional v 11.0.0.116
I have a text string that in the database is lowercase, but (sometimes!) when I do a query the datagrid displays it as UPPERCASE (and sometimes it displays it as correct lowercase) . How do I forcethe datagrid to ALWAYS display it as it is in the database?
This query – selecting for lowercase ‘werner’ returns this record BUT (incorrectly) displays the manufacturer as UPPERCASE:
Good catch Michael - my guess would be to look at that table and you might have eithert duplicate columns - possibly even “virtual columns” where one column is defined as an upper of the other column. I wrote a blog on this a long time ago - have a look see.