XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.0
    • SQL Support
    • None
    • Windows

    Description

      Добрый день!

      Столкнулся с проблемой выпонения SQL запроса.

      Выполняю SQL запрос в SQL Manager for PostgresSQL один из параметров, который NULL получаю результат n строк. Когда выполняю этот же запрос, но параметр не NULL, а пустая строка - 0 строк.

      Теперь делаю тоже самое с QSQLQuery в QT:

      Передаю пустую строку - результат 0 строк, передаю NULL как описано в справке

      To bind a NULL value, use a null QVariant; for example, use QVariant(QVariant::String) if you are binding a string

      Результат тоже 0 строк.

      Как передать NULL?

       

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            _kulinar847 John Green
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes