removing unnecessary includes

master
Matt Huntington 3 years ago
parent 47b7668689
commit 4edd9932ad

@ -1,14 +1,11 @@
#include <stdlib.h>
#include <iostream>
#include <mysql_connection.h>
#include <driver.h>
#include <exception.h>
#include <resultset.h>
#include <statement.h>
using namespace sql;
using namespace std;
int main(void){
Driver *driver;
Connection *con;
Statement *stmt;
@ -22,15 +19,15 @@ int main(void){
while (res->next()) {
cout << "\t... MySQL replies: ";
/* Access column data by alias or column name */
cout << res->getString("seconds") << endl;
cout << "\t... MySQL says it again: ";
/* Access column data by numeric offset, 1 is the first column */
cout << res->getString(1) << endl;
}
delete res;
delete stmt;
delete con;
return 0;
}

Loading…
Cancel
Save