title: Parametrized column for Ibatis Query works first time, fails on second call
body: <p>I have a problem similar (or exactly the same) to what I found here:
  <a href="https://stackoverflow.com/questions/6139525/how-to-map-query-for-ibatis-with-parameterized-column-in-select-clause/21193950?noredirect=1#comment31913042_21193950">How to map query for iBATIS with parameterized column in select clause?</a>
  But the answer given there seems to not work for me.<br>
  I have the following:</p>
  
  <pre><code>&lt;typeAlias alias="resultado" type="java.lang.String"/&gt;
  &lt;typeAlias alias="parametro" type="java.util.Map"/&gt;
  
  &lt;select id="getValorVariable" resultClass="resultado" parameterClass="parametro"&gt;
      SELECT $campo$ FROM $tabla$
      WHERE $campoClave$ = #valorClave#
  &lt;/select&gt;
  </code></pre>
  
  <p>The first time it executes the select, it works. $campo$ has the value 'CIF'. The second time it runs, it should have the value 'FECHA' but it keeps 'CIF'. In the function calling the select, I check the map and its values, and it has the correct ones. </p>
  
  <p>Any idea? Thanks for any help.</p>