I have a very generic query which has different column names, depending
on what was passed to it.
<select id="query" resultClass="java.util.HashMap" parameterClass="map">
SELECT $columns$ FROM $from$ WHERE $where$
</select>
It works fine the first time. And it even works fine if $columns$
doesn't change. However, if $columns$ had (for instance) "my_column" in
one query, but then it had "another_column" in a later query, the last
query fail with "no such column 'my_column'"
Is this a bug, or a feature? Also, is there a work-around?
Thanks.