Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-56

Empty stream should result in empty DB value, not a NULL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.4
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None

      Description

      Currently there is a testcase ensuring it is NULL. I guess the idea was to make possible to insert NULL value with a stream. But at the same time that makes impossible to insert empty value with a stream. While NULL value can be set with either setNull or nullptr passed to setBlob.
      Perhaps the stream also should yield in NULL DB value if it's failing(i.e. istream::fail returns true)

        Attachments

          Activity

            People

            Assignee:
            Lawrin Lawrin Novitsky
            Reporter:
            Lawrin Lawrin Novitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration

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