title: Mybatis-Error setting null parameter
body: <p>I used mybatis-spring-1.0.3-SNAPSHOT  mybatis-3.0.6 spring3.0.6.I tried to delete record from a table like this:</p>
  
  <pre><code>        &lt;delete id="deleteNote" parameterType="hashMap"&gt;
      DELETE FROM BBSCS_NOTE 
      &lt;where&gt;
          &lt;if test="ids !=null and ids.length &gt; 0"&gt;
              &lt;foreach collection="ids" item="id" open="(" close=")" separator=","&gt;
                  ID IN #{id}
              &lt;/foreach&gt;
          &lt;/if&gt;
          &lt;if test="toID != null and toID != ''"&gt;AND TOID = #{toID}&lt;/if&gt;
          &lt;if test="fromID != null and fromID != ''"&gt;AND FROMID = #{fromID}&lt;/if&gt;
          &lt;if test="noteType != -1"&gt;AND NOTETYPE = #{noteType}&lt;/if&gt;
      &lt;/where&gt;         
  &lt;/delete&gt;
  </code></pre>
  
  <p>As you have seen,it's a  dynamic sql.The java test code like this:</p>
  
  <pre><code>Map map = new HashMap();
  String ids[] = {"1","2","3"};
  map.put("ids", ids);
  noteService.del(map);
  </code></pre>
  
  <p>When I executed java test code,there was some exception like this:</p>
  
  <pre><code>   org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter.  Most JDBC drivers require that the JdbcType must be specified for all nullable parameters. Cause: java.sql.SQLException: Invalid column type
  ; uncategorized SQLException for SQL []; SQL state [null]; error code [17004]; Invalid column type; nested exception is java.sql.SQLException: Invalid column type
  </code></pre>
  
  <p>Why?Can you give me some advice to solve this problem?Thanks.</p>