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

"select" specified in "timuout" is not enabled.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0 Beta 10
    • 3.0 GA Candidate
    • Core
    • None

    Description

      "SqlConfig.xml" at "defaultStatementTimeout" 100 set, "mapper" of "select" in "timeout" was set to 200.
      But, "defaultStatementTimeout" 100 will be set to enabled.

      Cause "MapperBuilderAssistant.java" of "setStatementTimeout" method "if" statement is assumed.

      <code>
      private void setStatementTimeout(Integer timeout, MappedStatement.Builder statementBuilder) {
      if (timeout != null)

      { timeout = configuration.getDefaultStatementTimeout(); }
      statementBuilder.timeout(timeout);
      }
      </code>

      <code>
      private void setStatementTimeout(Integer timeout, MappedStatement.Builder statementBuilder) {
      if (timeout == null) { timeout = configuration.getDefaultStatementTimeout(); }

      statementBuilder.timeout(timeout);
      }
      </code>

      Attachments

        Activity

          People

            cbegin Clinton Begin
            tanaka w.tanaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: