Commit 8ae5aa3b authored by unknown's avatar unknown

fixes for warnings and compile errors for the fix of bug 26243

parent 18a01ce9
...@@ -153,7 +153,9 @@ int main(int argc, char **argv) { ...@@ -153,7 +153,9 @@ int main(int argc, char **argv) {
my_init(); my_init();
if (argc > argcnt && argv[argcnt][0] == '-' && argv[argcnt][1] == '#') if (argc > argcnt && argv[argcnt][0] == '-' && argv[argcnt][1] == '#')
{
DBUG_PUSH(argv[argcnt++]+2); DBUG_PUSH(argv[argcnt++]+2);
}
if (argc > argcnt) if (argc > argcnt)
the_set = argv[argcnt++]; the_set = argv[argcnt++];
......
...@@ -467,7 +467,7 @@ berkeley_cmp_packed_key(DB *file, const DBT *new_key, const DBT *saved_key) ...@@ -467,7 +467,7 @@ berkeley_cmp_packed_key(DB *file, const DBT *new_key, const DBT *saved_key)
KEY_PART_INFO *key_part= key->key_part, *end=key_part+key->key_parts; KEY_PART_INFO *key_part= key->key_part, *end=key_part+key->key_parts;
uint key_length=new_key->size; uint key_length=new_key->size;
DBUG_DUMP("key_in_index", saved_key_ptr, saved_key->size); DBUG_DUMP("key_in_index", (uchar *)saved_key_ptr, saved_key->size);
for (; key_part != end && (int) key_length > 0; key_part++) for (; key_part != end && (int) key_length > 0; key_part++)
{ {
int cmp; int cmp;
...@@ -903,7 +903,7 @@ DBT *ha_berkeley::create_key(DBT *key, uint keynr, char *buff, ...@@ -903,7 +903,7 @@ DBT *ha_berkeley::create_key(DBT *key, uint keynr, char *buff,
key_length-=key_part->length; key_length-=key_part->length;
} }
key->size= (u_int32_t) (buff - (char*) key->data); key->size= (u_int32_t) (buff - (char*) key->data);
DBUG_DUMP("key",(char*) key->data, key->size); DBUG_DUMP("key",(uchar*) key->data, key->size);
DBUG_RETURN(key); DBUG_RETURN(key);
} }
...@@ -947,7 +947,7 @@ DBT *ha_berkeley::pack_key(DBT *key, uint keynr, char *buff, ...@@ -947,7 +947,7 @@ DBT *ha_berkeley::pack_key(DBT *key, uint keynr, char *buff,
key_length-=key_part->store_length; key_length-=key_part->store_length;
} }
key->size= (u_int32_t) (buff - (char*) key->data); key->size= (u_int32_t) (buff - (char*) key->data);
DBUG_DUMP("key",(char*) key->data, key->size); DBUG_DUMP("key",(uchar*) key->data, key->size);
DBUG_RETURN(key); DBUG_RETURN(key);
} }
...@@ -1705,7 +1705,7 @@ DBT *ha_berkeley::get_pos(DBT *to, byte *pos) ...@@ -1705,7 +1705,7 @@ DBT *ha_berkeley::get_pos(DBT *to, byte *pos)
pos+=key_part->field->packed_col_length((char*) pos,key_part->length); pos+=key_part->field->packed_col_length((char*) pos,key_part->length);
to->size= (uint) (pos- (byte*) to->data); to->size= (uint) (pos- (byte*) to->data);
} }
DBUG_DUMP("key", (char*) to->data, to->size); DBUG_DUMP("key", (uchar*) to->data, to->size);
return to; return to;
} }
......
...@@ -6943,7 +6943,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -6943,7 +6943,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
switch(optid) { switch(optid) {
case '#': case '#':
#ifndef DBUG_OFF #ifndef DBUG_OFF
DBUG_PUSH(argument ? argument : default_dbug_option); DBUG_SET_INITIAL(argument ? argument : default_dbug_option);
#endif #endif
opt_endinfo=1; /* unireg: memory allocation */ opt_endinfo=1; /* unireg: memory allocation */
break; break;
......
...@@ -444,8 +444,10 @@ bool st_select_lex_unit::exec() ...@@ -444,8 +444,10 @@ bool st_select_lex_unit::exec()
} }
/* re-enabling indexes for next subselect iteration */ /* re-enabling indexes for next subselect iteration */
if (union_distinct && table->file->enable_indexes(HA_KEY_SWITCH_ALL)) if (union_distinct && table->file->enable_indexes(HA_KEY_SWITCH_ALL))
{
DBUG_ASSERT(0); DBUG_ASSERT(0);
} }
}
for (SELECT_LEX *sl= select_cursor; sl; sl= sl->next_select()) for (SELECT_LEX *sl= select_cursor; sl; sl= sl->next_select())
{ {
ha_rows records_at_start= 0; ha_rows records_at_start= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment