flux << a << endl;
fichier.close();
qDebug()<<a<<" content added into file";
- q->prepare("INSERT INTO raw (date, texte) VALUES (:date, :texte);");
- q->bindValue(":date", v.currentDateTime().toString(QString("yyyy-MM-dd hh:mm:ss")));
- q->bindValue(":texte", texte->text());
+ q->prepare("INSERT INTO raw (texte) VALUES (:txt);");
+ //q->bindValue(":date", v.currentDateTime().toString(QString("yyyy-MM-dd hh:mm:ss")));
+ q->bindValue(":txt", texte->text());
+ //qDebug()<<":date = "<<q->boundValue(QString(":date"));
+ qDebug()<<":txt = "<<q->boundValue(QString(":txt"));
q->exec();
QSqlError b=q->lastError();
if (b.isValid())qDebug()<<"q->lastError():"<<b.text();