Uploaded image for project: 'OJB'
  1. OJB
  2. OJB-132

Repository load fails on Turkish

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.4
    • 1.0.5
    • None
    • None

    Description

      The problem is due to the use of toLowerCase() in JdbcTypesHelper which uses the default system locale. Turkish has different casing rules so the lower of "INTEGER" is NOT "integer". The fix is to force the use of American locale:

      result = (JdbcType) jdbcObjectTypesFromName.get(typeName.toLowerCase(Locale.US));

      Caused by: org.apache.ojb.broker.OJBRuntimeException: The type INTEGER can not be handled by OJB. Pl
      ease specify only types as defined by java.sql.Types.
      at org.apache.ojb.broker.metadata.JdbcTypesHelper.getJdbcTypeByName(Unknown Source)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mperham Mike Perham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: