Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-525

getAsciiStreamshould replace non-ASCII characters with 0x3f, '?' to match embedded

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.1.0, 10.1.2.1, 10.2.1.6
    • Fix Version/s: 10.2.1.6
    • Component/s: Network Client
    • Labels:
      None

      Description

      When calling Clob.getAsciiStream or ResultSet.getAsciiStream if
      the column type is a character type or a CLOB, then any out of
      range character (to the ASCII set) needs to be replaced by 0x3f
      ('?', question mark). ASCII is defined as 8 bit characters,
      thus Unicode Characters in the range 0x0000 to 0x00ff are
      mapped to ASCII characters 0x00 to 0xff, and Unicode characters
      in the range 0x0100 to 0xffff are mapped to 0x3f

      By code inspection:

      client code in
      org.apache.derby.client.am.ResultSet

      embedded in
      org.apache.derby.impl.jdbc.ReaderToAscii

        Attachments

        1. derbyall_report.txt
          10 kB
          Tomohito Nakayama
        2. DERBY-525.site.patch
          0.7 kB
          Tomohito Nakayama
        3. DERBY-525.patch
          2 kB
          Tomohito Nakayama
        4. DERBY-525_3.patch
          8 kB
          Tomohito Nakayama

          Issue Links

            Activity

              People

              • Assignee:
                tmnk Tomohito Nakayama
                Reporter:
                kmarsden Katherine Marsden
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: