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

QODBC - decimal values don't work with Microsoft SQL Server ODBC Driver 1.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.0.0, 5.2.0
    • SQL Support
    • None
    • Linux (64b)
      unixODBC 2.3.2
      Microsoft SQL Server ODBC Driver 1.0
      Microsoft SQL Server 2012

    Description

      In one of the last my projects I used the Microsoft SQL Server 2012 database. Unfortunately FreeTDS does not meet my expectations and I have to use official driver.
      But Microsoft driver causes a problem with queries decimal values. Decimal number are empty (null). This is problem with QODBC.

      Solution is to change the qGetDoubleData function. In attachment I publish my solution.

      Attachments

        1. qsql_odbc.cpp
          92 kB
        2. qtbug36160.patch
          4 kB
        3. qtbug36160.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            baszczewski Marcin Baszczewski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes