Skip to content

Commit f669534

Browse files
committed
Cleanup
1 parent d22046e commit f669534

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

examples/connect.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ int main(int argc, const char **argv)
106106
pass = mysql_password;
107107
}
108108

109-
110109
/* sql::ResultSet.rowsCount() returns size_t */
111110
size_t row;
112111
stringstream sql;
@@ -125,8 +124,6 @@ int main(int argc, const char **argv)
125124
try {
126125
sql::Driver * driver = sql::mysql::get_driver_instance();
127126

128-
129-
130127
/* Using the Driver to create a connection */
131128
boost::scoped_ptr< sql::Connection > con(driver->connect(url, user, pass));
132129

@@ -249,7 +246,7 @@ int main(int argc, const char **argv)
249246
stmt.reset(con->createStatement());
250247
user_create << "CREATE USER "
251248
<< ldap_user
252-
<< "@'%' IDENTIFIED WITH authentication_ldap_sasl";
249+
<< " IDENTIFIED WITH authentication_ldap_sasl";
253250
try{
254251
stmt->execute(user_create.str());
255252
}catch(...)
@@ -266,14 +263,11 @@ int main(int argc, const char **argv)
266263
plugin
267264
*/
268265

269-
270-
271266
sql::ConnectOptionsMap opts;
272267
opts[OPT_HOSTNAME] = url;
273268
opts[OPT_USERNAME] = "ldap_simple";
274269
opts[OPT_PASSWORD] = ldap_simple_pwd;
275270

276-
277271
opts[OPT_ENABLE_CLEARTEXT_PLUGIN] = true;
278272

279273
con.reset(driver->connect(opts));

0 commit comments

Comments
 (0)