Is there any solution for it to be shown the "debug query" which has been performed (PostgreSQL + Qt5).



  • An example of a 'SELECT':
    "select a.codigo, a.nome, a.tipo, b.nome from the users, where a.tipo level b = b.codigo and a.codigo =? or lower (a.nome) =?" .

    but I need the qDebug () so show:
    select a.codigo, a.nome, a.tipo, b.nome from the users, where a.tipo level b = b.codigo and a.codigo = 100 or lower (a.nome) = 'user' ".

    I can not remember well, but in version 4.7 I could use the qDebug () and the result showed the data as in the second example.



  • Show Qt 4.7 code how you are trying to print query and how it works in Qt 5


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.