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

QSqlField::length() always return -1 when using QODBC3 driver and QSqlDatabase::record()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0 Beta 1, 5.0.0
    • 4.3.2
    • SQL Support
    • None
    • cf52540dfbf320e3d5cb9f7546542233c170af80

    Description

      QSqlField::length() always return -1 when using QODBC3 driver and QSqlDatabase::record().

      This happens when using QSqlDatabase::record(), but not when using QSqlQuery::record() thus a workaround is to execute a query that selects the columns from the table and then call record() on the query object.

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes