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

PostgreSQL and NaN insertion doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.5.3
    • 4.4.3
    • SQL Support
    • None
    • e5049ecc4590896a75dedcb098da9e991e1764ee

    Description

      Inserting a value that's not a number into a double percision field in PosgreSQL using QSqlQuery::prepare() doesn't work. Qt tries to execute the following query

      insert into table (field) values (nan)

      while the query should look like

      insert into table (field) values ('nan')

      note the quotes around 'nan'.

      autotest: tst_QSqlQuery::task_233829()

      Attachments

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

        Activity

          People

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes