~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleimport.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <boost/program_options.hpp>
28
28
#include <pthread.h>
29
29
 
 
30
#include <drizzled/definitions.h>
 
31
#include <drizzled/internal/my_sys.h>
30
32
/* Added this for string translation. */
31
33
#include <drizzled/gettext.h>
32
34
#include <drizzled/configmake.h>
397
399
  "Load files in parallel. The argument is the number of threads to use for loading data (default is 4.")
398
400
  ;
399
401
 
 
402
  const char* unix_user= getlogin();
 
403
 
400
404
  po::options_description client_options("Options specific to the client");
401
405
  client_options.add_options()
402
406
  ("host,h", po::value<string>(&current_host)->default_value("localhost"),
407
411
  "Port number to use for connection") 
408
412
  ("protocol", po::value<string>(&opt_protocol)->default_value("mysql"),
409
413
  "The protocol of connection (mysql or drizzle).")
410
 
  ("user,u", po::value<string>(&current_user)->default_value(""),
 
414
  ("user,u", po::value<string>(&current_user)->default_value((unix_user ? unix_user : "")),
411
415
  "User for login if not current user.")
412
416
  ;
413
417