2018-03-23 19:30:58 -07:00
|
|
|
--- dist/examples/pthreads.cpp 2017-05-10 12:14:59.000000000 -0400
|
|
|
|
|
+++ macports/examples/pthreads.cpp 2018-03-03 00:59:58.000000000 -0500
|
2012-08-23 18:00:33 +00:00
|
|
|
@@ -69,17 +69,13 @@
|
|
|
|
|
*/
|
|
|
|
|
#include "mysql_connection.h"
|
|
|
|
|
#include "mysql_driver.h"
|
|
|
|
|
+#include "examples.h"
|
|
|
|
|
|
|
|
|
|
#include <cppconn/driver.h>
|
|
|
|
|
#include <cppconn/exception.h>
|
|
|
|
|
#include <cppconn/resultset.h>
|
|
|
|
|
#include <cppconn/statement.h>
|
|
|
|
|
|
|
|
|
|
-#define EXAMPLE_HOST "localhost"
|
|
|
|
|
-#define EXAMPLE_USER "root"
|
|
|
|
|
-#define EXAMPLE_PASS ""
|
|
|
|
|
-#define EXAMPLE_DB "test"
|
|
|
|
|
-
|
|
|
|
|
struct st_worker_thread_param {
|
|
|
|
|
sql::Driver *driver;
|
|
|
|
|
sql::Connection *con;
|