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

PostgreSQL and NaN insertion doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.5.3
    • Component/s: SQL Support
    • Labels:
      None
    • Commits:
      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

            Assignee:
            wallison Warwick Allison (closed Nokia identity) (Inactive)
            Reporter:
            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