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

Stored procedure not recognized as select even so it always return one tuple

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.4
    • SQL Support
    • None
    • linux redhat -- sybase with TDS and libsybdb.so.5

      I use some not so complex stored procedure. They ALWAYS return one row with one cell ( eventually empty ). I aslo tried to make the procedure return a tuple with two cells including one 'fake' never empty.

      The stored procedure is not recognized as a 'select' and hence query.next() is equivalent to false. It seems that the presence of insert/updates within the procedure makes the isSelect return false.

      a detailed description can be found here ( where code is readable )

      http://stackoverflow.com/questions/19453286/isselect-qsqlquery-not-working-as-expected

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

            mabrand Mark Brand
            guardian raphael herouart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes