Important: Please read the Qt Code of Conduct -

Are QSql::Out and QSql::InOut used outside of calling a procedure?

  • I am using Qt5 to access a MySQL database. It is easy to execute INSERT queries using QSqlQuery + prepare() + bindValue().

    Now I noticed that bindValue() has an optional paramType parameter that can be set to QSql::Out and QSql::InOut.

    Is it correct that the QSql::Out and QSql::InOut arguments are useful when CALLing procedures and that they have no use for lets say a SELECT statement? Are there other use cases than CALL?

Log in to reply