cleanup the usage of tmp_sql so there is only one copy of it instead of creating and destroying it on the stack multiple times.
cleanup the usage of tmp_sql so there is only one copy of it instead of creating and destroying it on the stack multiple times.

ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead