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

Compiling QtSql DB2 driver on 64 bit platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.5, 5.0.2
    • 4.7.3, 4.8.4, 5.0.0
    • SQL Support
    • None
    • DB2 Express C 9.7.2 on x86_64.
    • 40c3f4a5a567a536cd1cbf3ab089da52627650df c8e34ed678145f2e5709d39007e27e186d1bc1f9

    Description

      When compiling the QDB2 driver, there is an error at src/sql/drivers/db2/qsql_db2.cpp:1033, complaining about an ambiguous call to QVariant constructor.
      The value returned from qGetBigIntData (which is SQLBIGINT) is defined in the DB2 driver headers to be long, on 64-bit platforms, and QVariant doesn't have a matching constructor.

      A solution might be to cast the returned value from qGetBigIntData to qint64.

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            haggai_e Haggai Eran
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes