Commit df96db63 authored by unknown's avatar unknown
Browse files

Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0

into dl145b.mysql.com:/home/ndbdev/tomas/mysql-5.1


sql/ha_ndbcluster.h:
  Auto merged
sql/handler.h:
  Auto merged
sql/sql_class.h:
  Auto merged
sql/sql_parse.cc:
  Auto merged
storage/heap/hp_hash.c:
  Auto merged
parents afbb97ba 9a71e2db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,5 +49,5 @@ enum options_client
#ifdef HAVE_NDBCLUSTER_DB
  OPT_NDBCLUSTER, OPT_NDB_CONNECTSTRING,
#endif
  OPT_IGNORE_TABLE
  OPT_IGNORE_TABLE,OPT_INSERT_IGNORE
};
+12 −7
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static my_bool verbose=0,tFlag=0,cFlag=0,dFlag=0,quick= 1, extended_insert= 1,
		opt_autocommit=0,opt_disable_keys=1,opt_xml=0,
		opt_delete_master_logs=0, tty_password=0,
		opt_single_transaction=0, opt_comments= 0, opt_compact= 0,
		opt_hex_blob=0, opt_order_by_primary=0;
		opt_hex_blob=0, opt_order_by_primary=0, opt_ignore=0;
static ulong opt_max_allowed_packet, opt_net_buffer_length;
static MYSQL mysql_connection,*sock=0;
static char  insert_pat[12 * 1024],*opt_password=0,*current_user=0,
@@ -257,6 +257,9 @@ static struct my_option my_long_options[] =
   "use the directive multiple times, once for each table.  Each table must "
   "be specified with both database and table names, e.g. --ignore-table=database.table",
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
  {"insert-ignore", OPT_INSERT_IGNORE, "Insert rows with INSERT IGNORE.",
   (gptr*) &opt_ignore, (gptr*) &opt_ignore, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
   0, 0},
  {"lines-terminated-by", OPT_LTB, "Lines in the i.file are terminated by ...",
   (gptr*) &lines_terminated, (gptr*) &lines_terminated, 0, GET_STR,
   REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
@@ -1100,13 +1103,15 @@ static uint get_table_structure(char *table, char *db)
  my_bool    init=0;
  uint       numFields;
  char	     *strpos, *result_table, *opt_quoted_table;
  const char *delayed;
  const char *insert_option;
  char	     name_buff[NAME_LEN+3],table_buff[NAME_LEN*2+3];
  char	     table_buff2[NAME_LEN*2+3];
  FILE       *sql_file = md_result_file;
  DBUG_ENTER("get_table_structure");

  delayed= opt_delayed ? " DELAYED " : "";
  insert_option= (opt_delayed && opt_ignore) ? " DELAYED IGNORE " : 
    opt_delayed ? " DELAYED " :
    opt_ignore ? " IGNORE " : "";

  if (verbose)
    fprintf(stderr, "-- Retrieving table structure for table %s...\n", table);
@@ -1190,11 +1195,11 @@ static uint get_table_structure(char *table, char *db)

    if (cFlag)
      my_snprintf(insert_pat, sizeof(insert_pat), "INSERT %sINTO %s (", 
		  delayed, opt_quoted_table);
		  insert_option, opt_quoted_table);
    else
    {
      my_snprintf(insert_pat, sizeof(insert_pat), "INSERT %sINTO %s VALUES ", 
		  delayed, opt_quoted_table);
		  insert_option, opt_quoted_table);
      if (!extended_insert)
        strcat(insert_pat,"(");
    }
@@ -1258,11 +1263,11 @@ static uint get_table_structure(char *table, char *db)
    }
    if (cFlag)
      my_snprintf(insert_pat, sizeof(insert_pat), "INSERT %sINTO %s (", 
		  delayed, result_table);
		  insert_option, result_table);
    else
    {
      my_snprintf(insert_pat, sizeof(insert_pat), "INSERT %sINTO %s VALUES ",
		  delayed, result_table);
		  insert_option, result_table);
      if (!extended_insert)
        strcat(insert_pat,"(");
    }
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ pkginclude_HEADERS = readline/readline.h

noinst_HEADERS =	chared.h el.h el_term.h histedit.h key.h parse.h refresh.h sig.h \
			sys.h tokenizer.h config.h hist.h map.h prompt.h read.h \
			search.h tty.h libedit_term.h
			search.h tty.h libedit_term.h vis.h

EXTRA_DIST = makelist.sh np/unvis.c np/strlcpy.c np/vis.c np/vis.h np/strlcat.c np/fgetln.c

+5 −0
Original line number Diff line number Diff line
@@ -43,6 +43,11 @@
#define HAVE_ERRNO_AS_DEFINE
#endif /* __CYGWIN__ */

/* Determine when to use "#pragma interface" */
#if !defined(__CYGWIN__) && !defined(__ICC) && defined(__GNUC__) && (__GNUC__ < 3)
#define USE_PRAGMA_INTERFACE
#endif

#if defined(i386) && !defined(__i386__)
#define __i386__
#endif
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ extern "C" {
#ifdef __cplusplus
}

#ifdef __GNUC__
#ifdef USE_PRAGMA_INTERFACE
#pragma interface			/* gcc class implementation */
#endif

Loading