~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.c

Giant merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
#define DUMP_VERSION "10.13"
40
40
 
41
 
#include <my_global.h>
42
 
#include <my_sys.h>
43
 
#include <m_string.h>
44
 
#include <m_ctype.h>
45
 
#include <hash.h>
 
41
#include "client_priv.h"
 
42
 
 
43
#include <mysys/my_sys.h>
 
44
#include <mystrings/m_string.h>
 
45
#include <mystrings/m_ctype.h>
 
46
#include <mysys/hash.h>
46
47
#include <stdarg.h>
47
48
 
48
 
#include "client_priv.h"
49
 
#include "drizzle_version.h"
50
 
#include "mysqld_error.h"
 
49
#include <drizzled/error.h>
51
50
 
52
51
/* Exit codes */
53
52
 
794
793
static int get_options(int *argc, char ***argv)
795
794
{
796
795
  int ho_error;
797
 
  DRIZZLE_PARAMETERS *drizzle_params= drizzle_get_parameters();
 
796
  const DRIZZLE_PARAMETERS *drizzle_params= drizzle_get_parameters();
798
797
 
799
798
  opt_max_allowed_packet= *drizzle_params->p_max_allowed_packet;
800
799
  opt_net_buffer_length= *drizzle_params->p_net_buffer_length;
1524
1523
    {
1525
1524
      /* Make an sql-file, if path was given iow. option -T was given */
1526
1525
      char buff[20+FN_REFLEN];
1527
 
      DRIZZLE_FIELD *field;
 
1526
      const DRIZZLE_FIELD *field;
1528
1527
 
1529
1528
      snprintf(buff, sizeof(buff), "show create table %s", result_table);
1530
1529
 
2292
2291
           we'll dump in hex only BLOB columns.
2293
2292
        */
2294
2293
        is_blob= (opt_hex_blob && field->charsetnr == 63 &&
2295
 
                  (field->type == MYSQL_TYPE_STRING ||
2296
 
                   field->type == MYSQL_TYPE_VARCHAR ||
2297
 
                   field->type == MYSQL_TYPE_BLOB)) ? 1 : 0;
 
2294
                  (field->type == DRIZZLE_TYPE_VARCHAR ||
 
2295
                   field->type == DRIZZLE_TYPE_BLOB)) ? 1 : 0;
2298
2296
        if (extended_insert && !opt_xml)
2299
2297
        {
2300
2298
          if (i == 0)
3420
3418
 
3421
3419
  compatible_mode_normal_str[0]= 0;
3422
3420
  default_charset= (char *)drizzle_universal_client_charset;
3423
 
  bzero((char*) &ignore_table, sizeof(ignore_table));
 
3421
  memset((char*) &ignore_table, 0, sizeof(ignore_table));
3424
3422
 
3425
3423
  exit_code= get_options(&argc, &argv);
3426
3424
  if (exit_code)