Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there any solution for it to be shown the "debug query" which has been performed (PostgreSQL + Qt5).
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 798 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    francomartins
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fAg1r
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved