Mercurial > dedupe
view Exception/SQLException.cpp @ 58:7b7e84356b39
Introduce API for fine tuning inserts.
Reduce the amount of rebuilds.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Fri, 14 Sep 2012 00:04:24 +0200 |
| parents | f711ddb56ae7 |
| children | c9447697609f |
line wrap: on
line source
#include "SQLException.hpp" #include <QtSql/QSqlError> #include <QtSql/QSqlQuery> SQLException::SQLException(const QString& errorMsg) : Exception(errorMsg) { } SQLException::SQLException(const QSqlQuery& errorQuery) : Exception(errorQuery.lastError().text() + ":" + errorQuery.lastQuery()) { }
