viglu
29th March 2010, 18:57
Hello,
I have a problem with the following lines.
QSqlQuery query(db);
query.prepare("INSERT INTO demo1 (id) VALUES (?)");
QUuid uuid = QUuid::createUuid();
query.bindValue(0, uuid.toString());
I receive the error
error: no matching function for call to ‘QSqlQuery::bindValue(int, QString)
But I don't know why. Can anyone help me ?
Regards,
Luc
I have a problem with the following lines.
QSqlQuery query(db);
query.prepare("INSERT INTO demo1 (id) VALUES (?)");
QUuid uuid = QUuid::createUuid();
query.bindValue(0, uuid.toString());
I receive the error
error: no matching function for call to ‘QSqlQuery::bindValue(int, QString)
But I don't know why. Can anyone help me ?
Regards,
Luc