SQLite Forum

QT Framework and SQLite SEE
Login
int rc = sqlite3_prepare_v2(_pdb, query.toUtf8().constData(), -1, &stmt,NULL);

Is that not a dangling pointer? You call constData() on a temporary.

You could use sqlite3_prepare16_v2 or stop to use QString?