Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-77

Method getBinaryStream() on Blob's throws Out of range (position > stream size)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 1.1.5
    • 1.1.8
    • None
    • None

    Description

      See the attached test. This issue describes a different behavior than the
      MySQL/J Connector (v5.1.23), and thus the fails here being a drop in replacement.

      If a table with a Blob column has the value of an empty string stored, it can't be restored with the getBinaryStream method of the Blob, because it throws
      a SQLException with "Out of range (position > stream size)". Per se this
      is a legal behavior, but in regards to be a drop in replacement not.

      Attachments

        1. BlobTest.java
          3 kB
          Max Larsson
        2. CONJ77.patch
          4 kB
          Jochen Wiedmann

        Activity

          People

            massimo.siani Massimo Siani (Inactive)
            max.larsson Max Larsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.