Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1572

MySQL client library asserts when a BLOB colum contains only NULL values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.3.3
    • SQL Support
    • None

    Description

      The problem is in the QMYSQLResultPrivate::bindBlobs() method. It will set the buffer_length property of the MYSQL_BIND structure to 0 because the fieldInfo reports a max_length of 0 for the "description" column (as only a NULL value is in the database).

      This will cause MySQL to assert with

      Assertion failed: (param->buffer_length != 0), function
      setup_one_fetch_function, file libmysql.c, line 4358.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            admin Administrator
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes