From ff1d1f3998a13cfe05e2906f485650081550a73c Mon Sep 17 00:00:00 2001 From: birkeh Date: Wed, 31 Jan 2018 21:55:02 +0100 Subject: [PATCH] . --- cdistributoreditdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdistributoreditdialog.cpp b/cdistributoreditdialog.cpp index ea954c7..f901022 100644 --- a/cdistributoreditdialog.cpp +++ b/cdistributoreditdialog.cpp @@ -191,7 +191,7 @@ bool cDistributorEditDialog::add() return(false); } - szQuery = QString("INSERT INTO distributor (name, link, address, postal_code, city, country, phone, fax, email, description) VALUES (:name, :link, :address, :postal_code, :city, :country, :phone, :fax, :email, :description, :logo);"); + szQuery = QString("INSERT INTO distributor (name, link, address, postal_code, city, country, phone, fax, email, description, logo) VALUES (:name, :link, :address, :postal_code, :city, :country, :phone, :fax, :email, :description, :logo);"); query.prepare(szQuery); query.bindValue(":name", ui->m_lpName->text()); query.bindValue(":link", ui->m_lpLink->text()); @@ -220,6 +220,7 @@ bool cDistributorEditDialog::add() if(!query.exec()) { + myDebug << query.executedQuery(); myDebug << query.lastError().text(); return(false); }