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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes