]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
?
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Tue, 3 Dec 2013 23:07:13 +0000 (00:07 +0100)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Tue, 3 Dec 2013 23:07:13 +0000 (00:07 +0100)
mainwindow.cpp

index e79ffb11196189b17cea8737fbeee892c22137b6..d5bad525160128d9aaed6c22a6ca90eb2c2c9370 100644 (file)
@@ -369,9 +369,11 @@ int MainWindow::entry(){
     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();