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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes