Hi!

Does Sqlmap has any support for handling arrays from in the database?

I get the following error when calling the function queryForList()

"No type handler could be found to map the property 'bar' to column
'bar'.  One or both of the types, or the combination of types is not
supported."


Database-table
Table "Foo"
--------+------------+-------------
Column | Type | Modifier
--------+------------+-------------
bar | smallint[] | not null

        

Sqlmap
<select id="getTest" resultClass="com.mycompany.Foo">
        select bar from foo
</select>


Java-class
class Foo {
  int[] bar;
    public void setBar(int[] bar){ this.bar = bar; }
    public int[] getBar(){ return bar; }
} 


Thanks in advance!
Kristian Hellquist





Reply via email to