~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

Extracted the LOAD command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
#include <iostream>
48
48
#include <vector>
49
49
#include <algorithm>
50
 
#ifdef HAVE_SYS_WAIT_H
51
 
#include <sys/wait.h>
52
 
#endif
53
50
 
54
51
#include PCRE_HEADER
55
52
 
81
78
#define QUERY_SEND_FLAG  1
82
79
#define QUERY_REAP_FLAG  2
83
80
 
84
 
ErrorCodes global_error_names;
85
 
 
86
81
enum {
87
82
  OPT_PS_PROTOCOL, OPT_SP_PROTOCOL, OPT_CURSOR_PROTOCOL, OPT_VIEW_PROTOCOL,
88
83
  OPT_MAX_CONNECT_RETRIES, OPT_MARK_PROGRESS, OPT_LOG_DIR, OPT_TAIL_LINES,
4490
4485
  }
4491
4486
  if (!(*command_ptr= command=
4492
4487
        (struct st_command*) malloc(sizeof(*command))))
4493
 
    die("command malloc failed");
 
4488
    die(NULL);
4494
4489
  memset(command, 0, sizeof(*command));
4495
4490
  q_lines.push_back(command);
4496
4491
  command->type= Q_UNKNOWN;