From: Norbert Moutarde Date: Tue, 3 Dec 2013 23:07:13 +0000 (+0100) Subject: ? X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=dd44607088282a7be92f2fa440761c592cf74806;p=diary-mobile.git ? --- diff --git a/mainwindow.cpp b/mainwindow.cpp index e79ffb1..d5bad52 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -369,9 +369,11 @@ int MainWindow::entry(){ flux << a << endl; fichier.close(); qDebug()<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 = "<boundValue(QString(":date")); + qDebug()<<":txt = "<boundValue(QString(":txt")); q->exec(); QSqlError b=q->lastError(); if (b.isValid())qDebug()<<"q->lastError():"<