Commit ece42b09 authored by unknown's avatar unknown

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

into mysql.com:/opt/local/work/mysql-5.0-9643

parents 0500fefb 9c71571f
...@@ -2094,7 +2094,8 @@ print_table_data(MYSQL_RES *result) ...@@ -2094,7 +2094,8 @@ print_table_data(MYSQL_RES *result)
separator.fill(separator.length()+length+2,'-'); separator.fill(separator.length()+length+2,'-');
separator.append('+'); separator.append('+');
} }
tee_puts(separator.c_ptr_safe(), PAGER); separator.append('\0'); // End marker for \0
tee_puts((char*) separator.ptr(), PAGER);
if (column_names) if (column_names)
{ {
mysql_field_seek(result,0); mysql_field_seek(result,0);
...@@ -2107,7 +2108,7 @@ print_table_data(MYSQL_RES *result) ...@@ -2107,7 +2108,7 @@ print_table_data(MYSQL_RES *result)
num_flag[off]= IS_NUM(field->type); num_flag[off]= IS_NUM(field->type);
} }
(void) tee_fputs("\n", PAGER); (void) tee_fputs("\n", PAGER);
tee_puts(separator.c_ptr(), PAGER); tee_puts((char*) separator.ptr(), PAGER);
} }
while ((cur= mysql_fetch_row(result))) while ((cur= mysql_fetch_row(result)))
...@@ -2136,7 +2137,7 @@ print_table_data(MYSQL_RES *result) ...@@ -2136,7 +2137,7 @@ print_table_data(MYSQL_RES *result)
} }
(void) tee_fputs("\n", PAGER); (void) tee_fputs("\n", PAGER);
} }
tee_puts(separator.c_ptr(), PAGER); tee_puts((char*) separator.ptr(), PAGER);
my_afree((gptr) num_flag); my_afree((gptr) num_flag);
} }
......
...@@ -73,7 +73,7 @@ typedef KEYMAP_ENTRY *Keymap; ...@@ -73,7 +73,7 @@ typedef KEYMAP_ENTRY *Keymap;
#ifndef CTRL #ifndef CTRL
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef __GLIBC__ #if defined(__GLIBC__) || defined(__MWERKS__)
#include <sys/ttydefaults.h> #include <sys/ttydefaults.h>
#endif #endif
#ifndef CTRL #ifndef CTRL
......
...@@ -1394,12 +1394,14 @@ class Item_null_helper :public Item_ref_null_helper ...@@ -1394,12 +1394,14 @@ class Item_null_helper :public Item_ref_null_helper
void print(String *str); void print(String *str);
}; };
/* /*
The following class is used to optimize comparing of date and bigint columns The following class is used to optimize comparing of date and bigint columns
We need to save the original item, to be able to set the field to the We need to save the original item ('ref') to be able to call
original value in 'opt_range'. ref->save_in_field(). This is used to create index search keys.
An instance of Item_int_with_ref may refer to a signed or an unsigned
integer. An instance of Item_int_with_ref may have signed or unsigned integer value.
*/ */
class Item_int_with_ref :public Item_int class Item_int_with_ref :public Item_int
......
...@@ -3306,8 +3306,8 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table, ...@@ -3306,8 +3306,8 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table,
name->length(), 1)) <= name->length(), 1)) <=
0) 0)
{ {
my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), name->c_ptr(),
name->c_ptr_safe(), table->s->table_name); table->real_name);
map->set_all(); map->set_all();
return 1; return 1;
} }
......
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