Commit 2b483eb6 authored by unknown's avatar unknown
Browse files

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

into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-push

parents eb2b656c a397d1f7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1460,6 +1460,8 @@ static uint get_table_structure(char *table, char *db, char *table_type,
            {
              fprintf(sql_file, "/*!50001 DROP VIEW IF EXISTS %s*/;\n",
                      opt_quoted_table);
              fprintf(sql_file, "/*!50001 DROP TABLE IF EXISTS %s*/;\n",
                      opt_quoted_table);
              check_io(sql_file);
            }

@@ -1471,7 +1473,8 @@ static uint get_table_structure(char *table, char *db, char *table_type,
            */
            row= mysql_fetch_row(result);

            fprintf(sql_file, "  %s %s", quote_name(row[0], name_buff, 0), row[1]);
            fprintf(sql_file, "  %s %s", quote_name(row[0], name_buff, 0),
                    row[1]);

            while((row= mysql_fetch_row(result)))
            {
+2 −2
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
  ulong found= 0;
  byte *key, *recpos;
  uint key_length;
  uint not_used;
  uint not_used[2];
  
  if ((key= tree_search_edge(&keydef->rb_tree, info->parents,
			     &info->last_pos, offsetof(TREE_ELEMENT, left))))
@@ -177,7 +177,7 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
      memcpy(&recpos, key + (*keydef->get_key_length)(keydef,key), sizeof(byte*));
      key_length= hp_rb_make_key(keydef, info->recbuf, recpos, 0);
      if (ha_key_cmp(keydef->seg, (uchar*) info->recbuf, (uchar*) key,
		     key_length, SEARCH_FIND | SEARCH_SAME, &not_used))
		     key_length, SEARCH_FIND | SEARCH_SAME, not_used))
      {
	error= 1;
	DBUG_PRINT("error",("Record in wrong link:  key: %d  Record: 0x%lx\n", 
+2 −2
Original line number Diff line number Diff line
@@ -203,9 +203,9 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef,

static int keys_compare(heap_rb_param *param, uchar *key1, uchar *key2)
{
  uint not_used;
  uint not_used[2];
  return ha_key_cmp(param->keyseg, key1, key2, param->key_length, 
		    param->search_flag, &not_used);
		    param->search_flag, not_used);
}

static void init_block(HP_BLOCK *block, uint reclength, ulong min_records,
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ noinst_HEADERS = config-win.h config-os2.h config-netware.h \
			mysys_err.h my_base.h help_start.h help_end.h \
			my_nosys.h my_alarm.h queues.h rijndael.h sha1.h \
			my_aes.h my_tree.h hash.h thr_alarm.h \
			thr_lock.h t_ctype.h violite.h md5.h \
			thr_lock.h t_ctype.h violite.h md5.h base64.h \
			mysql_version.h.in my_handler.h my_time.h decimal.h

# mysql_version.h are generated
+2 −0
Original line number Diff line number Diff line
@@ -88,4 +88,6 @@ extern int ha_key_cmp(register HA_KEYSEG *keyseg, register uchar *a,
		      register uchar *b, uint key_length, uint nextflag,
		      uint *diff_pos);

extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, uchar *a);

#endif /* _my_handler_h */
Loading