FYI I tested and the setAttribute() must go before the execute() to have an effect in this way. I'll see if the client is willing to test your modification.
Analytics and reporting
Case-Sensitive Columns in Ad-Hoc Queries
This discussion has been locked so you can no longer reply to it.