Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5551

String types not converted from CLOB

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.4, 2.10.2, 2.11.0
    • camel-jdbc
    • None
    • Microsoft SQL Server, JTDS driver

    • Patch Available
    • Unknown

    Description

      Not all JBDC drivers support "getObject" on the resultset the same way. In particular, the jtds driver returns back a "ClobImpl" type Object when "getObject" is called on some text\varchar(MAX) columns.

      The simple solution is to check the column type and if it is a Clob\Blob or other known String type, call "getString" instead.

      Attachments

        1. CAMEL-5551-patch.txt
          1 kB
          Shaun Elliott

        Activity

          People

            njiang Willem Jiang
            selliott Shaun Elliott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: