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

QPSQL doesn't deal with numeric's precision

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • 4.8.x
    • 4.6.0, 4.6.1, 4.6.2, 4.6.3
    • Core: Plugins, SQL Support
    • None
    • Windows XP sp3 32bit (Qt 4.6.0), Ubuntu 10.04 32bit (Qt 4.6.2)

    Description

      PostgreSql 8.4
      QPSQL driver returns incorrect length and precision for numeric fields.
      For example, numeric(8,3):
      length()=524291, precision=-1
      By the way, 524291 = 0x80003!
      It means, that HIWORD of length() is length and LOWORD is precision.

      Attachments

        1. qsql_psql.cpp
          46 kB
        2. test_psql.zip
          23 kB
        3. test.txt
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            parihaaraka Andrey L.
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes