/*
I was having the same problem, I resolved this by using the tag <tt></tt> this will override the wptexturize function..
Text enclosed in the tags
, `, <kbd>, <style>, <script>, and <tt> will be skipped. This list of tags can be changed with the 'no_texturize_tags' filter.
Her is an example of they way I use it and notice the placement of <tt></tt>..
<td style="text-align: center;"><tt>[sqlgetvar]SELECT COUNT(*)
FROM <code>wp_shwcp_leads_1`
WHERE creation_date
BETWEEN'2016-06-01' AND '2016-07-01'
AND l_status='2' AND l_source= '1'
AND owned_by= 'ULMS'[/sqlgetvar]</tt></td>
*/