Commit 64bb4602 authored by unknown's avatar unknown

Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1

into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
parents da3e0586 3ec7f3d6
...@@ -635,6 +635,7 @@ sub copy_index ...@@ -635,6 +635,7 @@ sub copy_index
my $to="$target/$file"; my $to="$target/$file";
my $buff; my $buff;
open(INPUT, "<$from") || die "Can't open file $from: $!\n"; open(INPUT, "<$from") || die "Can't open file $from: $!\n";
binmode(INPUT, ":raw");
my $length=read INPUT, $buff, 2048; my $length=read INPUT, $buff, 2048;
die "Can't read index header from $from\n" if ($length < 1024); die "Can't read index header from $from\n" if ($length < 1024);
close INPUT; close INPUT;
......
...@@ -362,6 +362,7 @@ class Item_func_database :public Item_str_func ...@@ -362,6 +362,7 @@ class Item_func_database :public Item_str_func
void fix_length_and_dec() void fix_length_and_dec()
{ {
max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen; max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen;
maybe_null=1;
} }
const char *func_name() const { return "database"; } const char *func_name() const { return "database"; }
}; };
......
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