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

Ibatis add a lot of spce when lauching dynamic query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.0
    • None
    • Core
    • Windows XP / Eclipse

    Description

      When you execute large dynamic SQL ibatis add a lot a sapces to the query. This situation could create problem to debug queries and for some database provider it takes more memory when the query "string" is larger.

      A simple fix could be used in com.ibatis.sqlmap.engine.execution :

      Add : sql = sql.trim().replaceAll("\\s\\s*", " ");

      In : could be inserted in all these function : executeUpdate, addBatch, executeQuery, executeUpdateProcedure, executeQueryProcedure, prepareStatement, prepareCall, prepareStatement, prepareCall, addBatch

      Attachments

        Activity

          People

            Unassigned Unassigned
            pprevill Philippe Preville
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: