Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-747

Inline type handler configuration ignored if in new line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0 Beta 9
    • 3.0 Beta 10
    • Core
    • None

    Description

      When declaring a type handler within a paramter map and the type handler is declared in another row than the property the type handler is ignored.

      This fails:

      <select id="getJobs" parameterType="java.util.Map">
      SELECT * FROM JOB
      <if test="filter.urlPattern!=null">
      WHERE url like
      #

      {filter.urlPattern, typeHandler=WildcardStringTypeHandler}

      </if>
      </select>

      This works:

      <select id="getJobs" parameterType="java.util.Map">
      SELECT * FROM JOB
      <if test="filter.urlPattern!=null">
      WHERE url like
      #

      {filter.urlPattern,typeHandler=WildcardStringTypeHandler}

      </if>
      </select>

      Attachments

        Activity

          People

            cbegin Clinton Begin
            fkorf Frank Korf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: