mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge mysql.com:/home/jimw/my/mysql-5.0-clean
into mysql.com:/home/jimw/my/mysql-5.1-clean
This commit is contained in:
@@ -1220,6 +1220,32 @@ show columns from t2;
|
|||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
a varchar(3) YES NULL
|
a varchar(3) YES NULL
|
||||||
drop table t2, t1;
|
drop table t2, t1;
|
||||||
|
create table t1 (f1 decimal(60,25), f2 decimal(60,25));
|
||||||
|
insert into t1 values (0.0,0.0);
|
||||||
|
select f1 from t1 union all select f2 from t1;
|
||||||
|
f1
|
||||||
|
0.0000000000000000000000000
|
||||||
|
0.0000000000000000000000000
|
||||||
|
select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1
|
||||||
|
union all
|
||||||
|
select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1;
|
||||||
|
description f1
|
||||||
|
XXXXXXXXXXXXXXXXXXXX 0.0000000000000000000000000
|
||||||
|
YYYYYYYYYYYYYYYYYYYY 0.0000000000000000000000000
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (f1 decimal(60,24), f2 decimal(60,24));
|
||||||
|
insert into t1 values (0.0,0.0);
|
||||||
|
select f1 from t1 union all select f2 from t1;
|
||||||
|
f1
|
||||||
|
0.000000000000000000000000
|
||||||
|
0.000000000000000000000000
|
||||||
|
select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1
|
||||||
|
union all
|
||||||
|
select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1;
|
||||||
|
description f1
|
||||||
|
XXXXXXXXXXXXXXXXXXXX 0.000000000000000000000000
|
||||||
|
YYYYYYYYYYYYYYYYYYYY 0.000000000000000000000000
|
||||||
|
drop table t1;
|
||||||
create table t1 (a varchar(5));
|
create table t1 (a varchar(5));
|
||||||
create table t2 select * from t1 union select 'abcdefghijkl';
|
create table t2 select * from t1 union select 'abcdefghijkl';
|
||||||
show create table t2;
|
show create table t2;
|
||||||
@@ -1270,29 +1296,3 @@ id
|
|||||||
5
|
5
|
||||||
99
|
99
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (f1 decimal(60,25), f2 decimal(60,25));
|
|
||||||
insert into t1 values (0.0,0.0);
|
|
||||||
select f1 from t1 union all select f2 from t1;
|
|
||||||
f1
|
|
||||||
0.0000000000000000000000000
|
|
||||||
0.0000000000000000000000000
|
|
||||||
select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1
|
|
||||||
union all
|
|
||||||
select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1;
|
|
||||||
description f1
|
|
||||||
XXXXXXXXXXXXXXXXXXXX 0.0000000000000000000000000
|
|
||||||
YYYYYYYYYYYYYYYYYYYY 0.0000000000000000000000000
|
|
||||||
drop table t1;
|
|
||||||
create table t1 (f1 decimal(60,24), f2 decimal(60,24));
|
|
||||||
insert into t1 values (0.0,0.0);
|
|
||||||
select f1 from t1 union all select f2 from t1;
|
|
||||||
f1
|
|
||||||
0.000000000000000000000000
|
|
||||||
0.000000000000000000000000
|
|
||||||
select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1
|
|
||||||
union all
|
|
||||||
select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1;
|
|
||||||
description f1
|
|
||||||
XXXXXXXXXXXXXXXXXXXX 0.000000000000000000000000
|
|
||||||
YYYYYYYYYYYYYYYYYYYY 0.000000000000000000000000
|
|
||||||
drop table t1;
|
|
||||||
|
@@ -252,6 +252,7 @@ if ( defined $opt{regexp} ) {
|
|||||||
my $sth_dbs = $dbh->prepare("show databases");
|
my $sth_dbs = $dbh->prepare("show databases");
|
||||||
$sth_dbs->execute;
|
$sth_dbs->execute;
|
||||||
while ( my ($db_name) = $sth_dbs->fetchrow_array ) {
|
while ( my ($db_name) = $sth_dbs->fetchrow_array ) {
|
||||||
|
next if $db_name =~ m/^information_schema$/i;
|
||||||
push @db_desc, { 'src' => $db_name, 't_regex' => $t_regex } if ( $db_name =~ m/$opt{regexp}/o );
|
push @db_desc, { 'src' => $db_name, 't_regex' => $t_regex } if ( $db_name =~ m/$opt{regexp}/o );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user