~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleimport.cc

  • Committer: Mark Atwood
  • Date: 2011-11-30 07:06:47 UTC
  • mfrom: (2463.1.6 drizzle-include)
  • Revision ID: me@mark.atwood.name-20111130070647-ixp7oalp70hkbt6l
mergeĀ lp:~brianaker/drizzle/libdrizzle-2.0-not-install

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
  drizzle_return_t ret;
202
202
 
203
203
  if (verbose)
 
204
  {
204
205
    fprintf(stdout, "Connecting to %s, using protocol %s...\n", ! host.empty() ? host.c_str() : "localhost", opt_protocol.c_str());
205
 
  if (!(drizzle= drizzle_create(NULL)))
 
206
  }
 
207
 
 
208
  if ((drizzle= drizzle_create()) == NULL)
 
209
  {
206
210
    return 0;
207
 
  if (!(con= drizzle_con_add_tcp(drizzle,NULL,(char *)host.c_str(),opt_drizzle_port,(char *)user.c_str(),(char *)passwd.c_str(),
208
 
                                 (char *)database.c_str(), use_drizzle_protocol ? DRIZZLE_CON_EXPERIMENTAL : DRIZZLE_CON_MYSQL)))
 
211
  }
 
212
 
 
213
  if (!(con= drizzle_con_add_tcp(drizzle,
 
214
                                 host.c_str(), opt_drizzle_port,
 
215
                                 user.c_str(), passwd.c_str(),
 
216
                                 database.c_str(),
 
217
                                 use_drizzle_protocol ? DRIZZLE_CON_EXPERIMENTAL : DRIZZLE_CON_MYSQL)))
209
218
  {
210
219
    return 0;
211
220
  }