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

QSqlQuery::value() returns array types as QString when using Postgresql

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.2.2
    • SQL Support
    • None

    Description

      When having a column in a Postgresql database containing arrays (for instance an array of bigint) then the returned QVariant from QSqlQuery::value() will be of type QString, containing a string representation of the array. The array has to be parsed by the program using the QSqlQuery for the returned data to be useful, it would be nice if Qt did this automatically returning a QList<QVariant> instead.

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            admin Administrator
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes