Commit ac748c78 authored by unknown's avatar unknown

Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/M41/mysql-4.1
parents 76fdf47b 4a158db4
...@@ -14,19 +14,17 @@ $pkginfo = "pkginfo"; ...@@ -14,19 +14,17 @@ $pkginfo = "pkginfo";
($gid ,$pkg ,$uid ,$userInfo ,$email ,$quota ,$group ,$passwd ($gid ,$pkg ,$uid ,$userInfo ,$email ,$quota ,$group ,$passwd
,$category ,$userHome ,$vendor ,$loginShell ,$pstamp ,$basedir)=(); ,$category ,$userHome ,$vendor ,$loginShell ,$pstamp ,$basedir)=();
$fullname = shift @ARGV; $tarball= $fullname= shift @ARGV;
$fullname or die "No package name was specified"; $fullname=~ s/.*(mysql.*)\.tar\.gz/$1/;
-d $fullname or die "That directory is not present!"; $workdir= $$;
chomp ($parent_workdir= `pwd`);
$fullname =~ s,/+$,,; # Remove ending slash if any $hostname= ($fullname=~ m/^.+-64bit$/) ? $hostname . "-64bit" : $hostname;
$pkgdir= "$ENV{'HOME'}/$hostname";
$pkgdir= `cd ../$hostname; pwd`; mkdir $workdir or die "Can't make workdir: $!\n";
$pwd = `pwd`; chdir $workdir or die "Can't change to workdir: $!\n";
if ($pwd =~ '\/usr\/local') { system ("tar xzvf $tarball") == 0 or die "Can't untar: $!\n";
$pwd = $`;
}
die "Wrong location, please cd to <PKGBASE>/usr/local/ and run again.\n"
if ($pwd eq "");
system ("$find . -print | $pkgproto > $temp"); system ("$find . -print | $pkgproto > $temp");
open (PREPROTO,"<$temp") or die "Unable to read prototype information ($!)\n"; open (PREPROTO,"<$temp") or die "Unable to read prototype information ($!)\n";
...@@ -57,8 +55,9 @@ unlink $temp or warn "Unable to remove tempfile ($!)\n"; ...@@ -57,8 +55,9 @@ unlink $temp or warn "Unable to remove tempfile ($!)\n";
# Now we can start building the package # Now we can start building the package
# #
# First get some info # First get some info
$fullname =~ s,/+$,,; # Remove ending slash if any
$fullname =~ /^((mysql)-.+)-([\d\.]+)-.+$/ $fullname =~ /^((mysql)-\w+-?\w+?)-([\d\.]+\w?)-.+$/
or die "This name is not what I expected - \"$fullname\""; or die "This name is not what I expected - \"$fullname\"";
$default{"name"}= $2; $default{"name"}= $2;
...@@ -137,10 +136,11 @@ system ("gzip /tmp/$packagename"); ...@@ -137,10 +136,11 @@ system ("gzip /tmp/$packagename");
# Clean-up the spool area # Clean-up the spool area
system ("(cd /var/spool/pkg; rm -rf $pkg)"); system ("(cd /var/spool/pkg; rm -rf $pkg)");
# Clean-up the ~/packaging/ area # Clean-up the ~/packaging/ area
system ("(rm -rf mysql*)");
unlink $pkginfo; unlink $pkginfo;
unlink $prototype; unlink $prototype;
system ("mv /tmp/${packagename}.gz $pkgdir"); chdir $parent_workdir or die "Can't change to parent workdir '$parent_workdir': $!\n";
system ("rm -rf $workdir") == 0 or die "Can't remove the working dir: $!\n";
system ("mv /tmp/${packagename}.gz $pkgdir") == 0 or die "Can't move the finished package out of /tmp: $!\n";
print "Done. (~/$hostname/$packagename.gz)\n"; print "Done. (~/$hostname/$packagename.gz)\n";
# The subroutines # The subroutines
sub chkvar { sub chkvar {
......
...@@ -683,6 +683,26 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -683,6 +683,26 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 ALL NULL NULL NULL NULL 2 1 SIMPLE t3 ALL NULL NULL NULL NULL 2
drop table t1, t2, t3; drop table t1, t2, t3;
create table t1 ( create table t1 (
a int(11),
b char(10),
key (a)
);
insert into t1 (a) values (1),(2),(3),(4);
create table t2 (a int);
select * from t1 left join t2 on t1.a=t2.a where not (t2.a <=> t1.a);
a b a
1 NULL NULL
2 NULL NULL
3 NULL NULL
4 NULL NULL
select * from t1 left join t2 on t1.a=t2.a having not (t2.a <=> t1.a);
a b a
1 NULL NULL
2 NULL NULL
3 NULL NULL
4 NULL NULL
drop table t1,t2;
create table t1 (
match_id tinyint(3) unsigned not null auto_increment, match_id tinyint(3) unsigned not null auto_increment,
home tinyint(3) unsigned default '0', home tinyint(3) unsigned default '0',
unique key match_id (match_id), unique key match_id (match_id),
......
...@@ -457,6 +457,19 @@ explain select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 an ...@@ -457,6 +457,19 @@ explain select * from t1 left join t2 on b1 = a1 left join t3 on c1 = a1 an
drop table t1, t2, t3; drop table t1, t2, t3;
# Test for BUG#8711 '<=>' was considered to be a NULL-rejecting predicate.
create table t1 (
a int(11),
b char(10),
key (a)
);
insert into t1 (a) values (1),(2),(3),(4);
create table t2 (a int);
select * from t1 left join t2 on t1.a=t2.a where not (t2.a <=> t1.a);
select * from t1 left join t2 on t1.a=t2.a having not (t2.a <=> t1.a);
drop table t1,t2;
# Test for BUG#5088 # Test for BUG#5088
create table t1 ( create table t1 (
......
...@@ -284,6 +284,7 @@ class Item_func_equal :public Item_bool_rowready_func2 ...@@ -284,6 +284,7 @@ class Item_func_equal :public Item_bool_rowready_func2
Item_func_equal(Item *a,Item *b) :Item_bool_rowready_func2(a,b) {}; Item_func_equal(Item *a,Item *b) :Item_bool_rowready_func2(a,b) {};
longlong val_int(); longlong val_int();
void fix_length_and_dec(); void fix_length_and_dec();
table_map not_null_tables() const { return 0; }
enum Functype functype() const { return EQUAL_FUNC; } enum Functype functype() const { return EQUAL_FUNC; }
enum Functype rev_functype() const { return EQUAL_FUNC; } enum Functype rev_functype() const { return EQUAL_FUNC; }
cond_result eq_cmp_result() const { return COND_TRUE; } cond_result eq_cmp_result() const { return COND_TRUE; }
......
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