#include "newForm.h" #include <cstdlib> #include <stdio.h> #include <string.h> #include <string> using namespace std; #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> #include <istream> #include <stdexcept> #include <istream> #include <qimage> #include <qpixmap> #include <mysql mysql.h=""> #include <cppconn driver.h=""> #include <cppconn exception.h=""> #include <cppconn connection.h=""> #include <cppconn resultset.h=""> #include <cppconn statement.h=""> #include <cppconn prepared_statement.h=""> #include <qgraphicspixmapitem> using namespace sql; // <---- add here sql::Driver * driver; sql::Connection *con; sql::Statement *stmt; sql::ResultSet *res; sql::PreparedStatement *prep_stmt; int counter = 1; newForm::newForm() { widget.setupUi(this); driver = get_driver_instance(); con = driver->connect("localhost","",""); con->setAutoCommit(0); con->setSchema("BitmapIMGSchema"); -->error
con->setSchema("BitmapIMGSchema"); -->error
Quote:terminate called after throwing an instance of 'sql:InvalidArgumantException' what(): The connection is in autoCommit mode.
Commit
setSchema
BitmapIMGSchema
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)