From dd44607088282a7be92f2fa440761c592cf74806 Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Wed, 4 Dec 2013 00:07:13 +0100 Subject: [PATCH] ? --- mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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():"<