File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ int main(int argc, const char **argv)
106
106
pass = mysql_password;
107
107
}
108
108
109
-
110
109
/* sql::ResultSet.rowsCount() returns size_t */
111
110
size_t row;
112
111
stringstream sql;
@@ -125,8 +124,6 @@ int main(int argc, const char **argv)
125
124
try {
126
125
sql::Driver * driver = sql::mysql::get_driver_instance ();
127
126
128
-
129
-
130
127
/* Using the Driver to create a connection */
131
128
boost::scoped_ptr< sql::Connection > con (driver->connect (url, user, pass));
132
129
@@ -249,7 +246,7 @@ int main(int argc, const char **argv)
249
246
stmt.reset (con->createStatement ());
250
247
user_create << " CREATE USER "
251
248
<< ldap_user
252
- << " @'%' IDENTIFIED WITH authentication_ldap_sasl" ;
249
+ << " IDENTIFIED WITH authentication_ldap_sasl" ;
253
250
try {
254
251
stmt->execute (user_create.str ());
255
252
}catch (...)
@@ -266,14 +263,11 @@ int main(int argc, const char **argv)
266
263
plugin
267
264
*/
268
265
269
-
270
-
271
266
sql::ConnectOptionsMap opts;
272
267
opts[OPT_HOSTNAME] = url;
273
268
opts[OPT_USERNAME] = " ldap_simple" ;
274
269
opts[OPT_PASSWORD] = ldap_simple_pwd;
275
270
276
-
277
271
opts[OPT_ENABLE_CLEARTEXT_PLUGIN] = true ;
278
272
279
273
con.reset (driver->connect (opts));
You can’t perform that action at this time.
0 commit comments