note
hdb
<p>
You cannot. My proposal only works for simple column names. Do you really need to pass the columns names? Can you not use
</p>
<code>
my $rs = $sth->fetchall_arrayref({});
</code>
<p>
without specifying the columns? According to the documentation it should work but I do not have your database to test it. This way everything would be controlled by your sql only.
</p>
1026680
1026710