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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.1.8
    • Component/s: None
    • Labels:
      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

          Activity

            People

            Assignee:
            massimo.siani Massimo Siani (Inactive)
            Reporter:
            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.