QT4.3.1: QSqlQuery query als QString bekommen.

Alles rund um die Programmierung mit Qt
Antworten
nando
Beiträge: 321
Registriert: 28. Oktober 2004 13:16

QT4.3.1: QSqlQuery query als QString bekommen.

Beitrag von nando »

Hi,
weiss jemand, wie ich von einer QSqlQuery and die query komme, die an die DB geht ?
Also nicht lastQuery()... Sondern die eigentlich SQL Message die generiert wird...

Gruss,
Nando
Sephral
Beiträge: 201
Registriert: 1. Februar 2006 09:40
Kontaktdaten:

Beitrag von Sephral »

Hiho,


Code: Alles auswählen

QString QSqlQuery::executedQuery () const

Returns the last query that was executed.
In most cases this function returns the same string as lastQuery(). If a prepared query with placeholders is executed on a DBMS that does not support it, the preparation of this query is emulated. The placeholders in the original query are replaced with their bound values to form a new query. This function returns the modified query. It is mostly useful for debugging purposes.
See also lastQuery().

Ciao,
Sephral
nando
Beiträge: 321
Registriert: 28. Oktober 2004 13:16

Beitrag von nando »

Klappr leider nicht.. zumindest nicht bei SQLITE...
Ich bekomme immer den string mit den bindngs...
nicht den SQL string..... :(
Antworten