Commit 26f4536f authored by walrus@mysql.com's avatar walrus@mysql.com

server-cfg.sh Remove smds, remove coversaton from date to int for mysql,

server-cfg.sh	add transactional for bdb
parent 695ed94e
...@@ -68,3 +68,4 @@ worm@altair.is.lan ...@@ -68,3 +68,4 @@ worm@altair.is.lan
zak@balfor.local zak@balfor.local
zak@linux.local zak@linux.local
salle@geopard.(none) salle@geopard.(none)
walrus@mysql.com
...@@ -168,25 +168,6 @@ sub new ...@@ -168,25 +168,6 @@ sub new
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
$limits{'working_blobs'} = 1; # If big varchar/blobs works $limits{'working_blobs'} = 1; # If big varchar/blobs works
$smds{'time'} = 1;
$smds{'q1'} = 'b'; # with time not supp by mysql ('')
$smds{'q2'} = 'b';
$smds{'q3'} = 'b'; # with time ('')
$smds{'q4'} = 'c'; # with time not supp by mysql (d)
$smds{'q5'} = 'b'; # with time not supp by mysql ('')
$smds{'q6'} = 'c'; # with time not supp by mysql ('')
$smds{'q7'} = 'c';
$smds{'q8'} = 'f';
$smds{'q9'} = 'c';
$smds{'q10'} = 'b';
$smds{'q11'} = 'b';
$smds{'q12'} = 'd';
$smds{'q13'} = 'c';
$smds{'q14'} = 'd';
$smds{'q15'} = 'd';
$smds{'q16'} = 'a';
$smds{'q17'} = 'c';
# Some fixes that depends on the environment # Some fixes that depends on the environment
if (defined($main::opt_create_options) && if (defined($main::opt_create_options) &&
$main::opt_create_options =~ /type=heap/i) $main::opt_create_options =~ /type=heap/i)
...@@ -199,6 +180,11 @@ sub new ...@@ -199,6 +180,11 @@ sub new
$limits{'max_text_size'} = 8000; # Limit in Innobase $limits{'max_text_size'} = 8000; # Limit in Innobase
$self->{'transactions'} = 1; # Transactions enabled $self->{'transactions'} = 1; # Transactions enabled
} }
if (defined($main::opt_create_options) &&
$main::opt_create_options =~ /type=bdb/i)
{
$self->{'transactions'} = 1; # Transactions enabled
}
if (defined($main::opt_create_options) && if (defined($main::opt_create_options) &&
$main::opt_create_options =~ /type=gemini/i) $main::opt_create_options =~ /type=gemini/i)
{ {
...@@ -266,7 +252,6 @@ sub create ...@@ -266,7 +252,6 @@ sub create
{ {
$field =~ s/ decimal/ double(10,2)/i; $field =~ s/ decimal/ double(10,2)/i;
$field =~ s/ big_decimal/ double(10,2)/i; $field =~ s/ big_decimal/ double(10,2)/i;
$field =~ s/ date/ int/i; # Because of tcp ?
$query.= $field . ','; $query.= $field . ',';
} }
foreach $index (@$index) foreach $index (@$index)
...@@ -575,7 +560,6 @@ sub new ...@@ -575,7 +560,6 @@ sub new
$self->{'cmp_name'} = "pg"; $self->{'cmp_name'} = "pg";
$self->{'data_source'} = "DBI:Pg:dbname=$database"; $self->{'data_source'} = "DBI:Pg:dbname=$database";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "text"; $self->{'blob'} = "text";
$self->{'text'} = "text"; $self->{'text'} = "text";
$self->{'double_quotes'} = 1; $self->{'double_quotes'} = 1;
...@@ -626,27 +610,6 @@ sub new ...@@ -626,27 +610,6 @@ sub new
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
$limits{'working_blobs'} = 1; # If big varchar/blobs works $limits{'working_blobs'} = 1; # If big varchar/blobs works
# the different cases per query ...
$smds{'q1'} = 'b'; # with time
$smds{'q2'} = 'b';
$smds{'q3'} = 'b'; # with time
$smds{'q4'} = 'c'; # with time
$smds{'q5'} = 'b'; # with time
$smds{'q6'} = 'c'; # strange error ....
$smds{'q7'} = 'c';
$smds{'q8'} = 'f'; # needs 128M to execute - can't do insert ...group by
$smds{'q9'} = 'c';
$smds{'q10'} = 'b';
$smds{'q11'} = 'b'; # can't do float8 * int4 - create operator
$smds{'q12'} = 'd'; # strange error???
$smds{'q13'} = 'c';
$smds{'q14'} = 'd'; # strange error???
$smds{'q15'} = 'd'; # strange error???
$smds{'q16'} = 'a';
$smds{'q17'} = 'c';
$smds{'time'} = 1; # the use of the time table -> 1 is on.
# when 0 then the date field must be a
# date field not a int field!!!
return $self; return $self;
} }
...@@ -871,7 +834,6 @@ sub new ...@@ -871,7 +834,6 @@ sub new
$self->{'cmp_name'} = "solid"; $self->{'cmp_name'} = "solid";
$self->{'data_source'} = "DBI:Solid:"; $self->{'data_source'} = "DBI:Solid:";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "long varchar"; $self->{'blob'} = "long varchar";
$self->{'text'} = "long varchar"; $self->{'text'} = "long varchar";
$self->{'double_quotes'} = 1; $self->{'double_quotes'} = 1;
...@@ -922,28 +884,6 @@ sub new ...@@ -922,28 +884,6 @@ sub new
$limits{'order_by_unused'} = 1; $limits{'order_by_unused'} = 1;
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
# for the smds small benchmark test ....
# the different cases per query ...
$smds{'q1'} = 'a';
$smds{'q2'} = '';
$smds{'q3'} = 'b'; #doesn't work -> strange error about column -fixed
$smds{'q4'} = 'a';
$smds{'q5'} = 'b';
$smds{'q6'} = 'c';
$smds{'q7'} = 'b';
$smds{'q8'} = 'f';
$smds{'q9'} = 'b';
$smds{'q10'} = 'b';
$smds{'q11'} = '';
$smds{'q12'} = 'd';
$smds{'q13'} = 'b';
$smds{'q14'} = 'd';
$smds{'q15'} = 'd';
$smds{'q16'} = '';
$smds{'q17'} = '';
$smds{'time'} = 1; # the use of the time table -> 1 is on.
# when 0 then the date field must be a
# date field not a int field!!!
return $self; return $self;
} }
...@@ -1119,7 +1059,6 @@ sub new ...@@ -1119,7 +1059,6 @@ sub new
$self->{'cmp_name'} = "empress"; $self->{'cmp_name'} = "empress";
$self->{'data_source'} = "DBI:EmpressNet:SERVER=$host;Database=/usr/local/empress/rdbms/bin/$database"; $self->{'data_source'} = "DBI:EmpressNet:SERVER=$host;Database=/usr/local/empress/rdbms/bin/$database";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "text"; $self->{'blob'} = "text";
$self->{'text'} = "text"; $self->{'text'} = "text";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -1172,28 +1111,6 @@ sub new ...@@ -1172,28 +1111,6 @@ sub new
$limits{'order_by_unused'} = 1; $limits{'order_by_unused'} = 1;
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
# for the smds small benchmark test ....
# the different cases per query ... EMPRESS
$smds{'q1'} = 'a';
$smds{'q2'} = '';
$smds{'q3'} = 'a';
$smds{'q4'} = 'a';
$smds{'q5'} = 'a';
$smds{'q6'} = 'a';
$smds{'q7'} = 'b';
$smds{'q8'} = 'd';
$smds{'q9'} = 'b';
$smds{'q10'} = 'a';
$smds{'q11'} = '';
$smds{'q12'} = 'd';
$smds{'q13'} = 'b';
$smds{'q14'} = 'b';
$smds{'q15'} = 'a';
$smds{'q16'} = '';
$smds{'q17'} = '';
$smds{'time'} = 1; # the use of the time table -> 1 is on.
# when 0 then the date field must be a
# date field not a int field!!!
return $self; return $self;
} }
...@@ -1410,7 +1327,6 @@ sub new ...@@ -1410,7 +1327,6 @@ sub new
$self->{'cmp_name'} = "Oracle"; $self->{'cmp_name'} = "Oracle";
$self->{'data_source'} = "DBI:Oracle:$database"; $self->{'data_source'} = "DBI:Oracle:$database";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "long"; $self->{'blob'} = "long";
$self->{'text'} = "long"; $self->{'text'} = "long";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -1464,24 +1380,6 @@ sub new ...@@ -1464,24 +1380,6 @@ sub new
$limits{'order_by_unused'} = 1; $limits{'order_by_unused'} = 1;
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
$smds{'time'} = 1;
$smds{'q1'} = 'b'; # with time not supp by mysql ('')
$smds{'q2'} = 'b';
$smds{'q3'} = 'b'; # with time ('')
$smds{'q4'} = 'c'; # with time not supp by mysql (d)
$smds{'q5'} = 'b'; # with time not supp by mysql ('')
$smds{'q6'} = 'c'; # with time not supp by mysql ('')
$smds{'q7'} = 'c';
$smds{'q8'} = 'f';
$smds{'q9'} = 'c';
$smds{'q10'} = 'b';
$smds{'q11'} = 'b';
$smds{'q12'} = 'd';
$smds{'q13'} = 'c';
$smds{'q14'} = 'd';
$smds{'q15'} = 'd';
$smds{'q16'} = 'a';
$smds{'q17'} = 'c';
return $self; return $self;
} }
...@@ -1675,7 +1573,6 @@ sub new ...@@ -1675,7 +1573,6 @@ sub new
$self->{'cmp_name'} = "Informix"; $self->{'cmp_name'} = "Informix";
$self->{'data_source'} = "DBI:Informix:$database"; $self->{'data_source'} = "DBI:Informix:$database";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "byte in table"; $self->{'blob'} = "byte in table";
$self->{'text'} = "byte in table"; $self->{'text'} = "byte in table";
$self->{'double_quotes'} = 0; # Can handle: 'Walker''s' $self->{'double_quotes'} = 0; # Can handle: 'Walker''s'
...@@ -1888,7 +1785,6 @@ sub new ...@@ -1888,7 +1785,6 @@ sub new
$self->{'data_source'} .= ":$host"; $self->{'data_source'} .= ":$host";
} }
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "blob"; $self->{'blob'} = "blob";
$self->{'text'} = "blob"; # text ? $self->{'text'} = "blob"; # text ?
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -2071,7 +1967,6 @@ sub new ...@@ -2071,7 +1967,6 @@ sub new
$self->{'data_source'} .= ":$host"; $self->{'data_source'} .= ":$host";
} }
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "text"; $self->{'blob'} = "text";
$self->{'text'} = "text"; $self->{'text'} = "text";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -2264,7 +2159,6 @@ sub new ...@@ -2264,7 +2159,6 @@ sub new
$self->{'data_source'} .= ";hostname=$host"; $self->{'data_source'} .= ";hostname=$host";
} }
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "text"; $self->{'blob'} = "text";
$self->{'text'} = "text"; $self->{'text'} = "text";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -2497,7 +2391,6 @@ sub new ...@@ -2497,7 +2391,6 @@ sub new
$self->{'cmp_name'} = "Adabas"; $self->{'cmp_name'} = "Adabas";
$self->{'data_source'} = "DBI:Adabas:$database"; $self->{'data_source'} = "DBI:Adabas:$database";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "long"; $self->{'blob'} = "long";
$self->{'text'} = "long"; $self->{'text'} = "long";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -2549,24 +2442,6 @@ sub new ...@@ -2549,24 +2442,6 @@ sub new
$limits{'order_by_unused'} = 1; $limits{'order_by_unused'} = 1;
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
$smds{'time'} = 1;
$smds{'q1'} = 'b'; # with time not supp by mysql ('')
$smds{'q2'} = 'b';
$smds{'q3'} = 'b'; # with time ('')
$smds{'q4'} = 'c'; # with time not supp by mysql (d)
$smds{'q5'} = 'b'; # with time not supp by mysql ('')
$smds{'q6'} = 'c'; # with time not supp by mysql ('')
$smds{'q7'} = 'c';
$smds{'q8'} = 'f';
$smds{'q9'} = 'c';
$smds{'q10'} = 'b';
$smds{'q11'} = 'b';
$smds{'q12'} = 'd';
$smds{'q13'} = 'c';
$smds{'q14'} = 'd';
$smds{'q15'} = 'd';
$smds{'q16'} = 'a';
$smds{'q17'} = 'c';
return $self; return $self;
} }
...@@ -2718,7 +2593,6 @@ sub new ...@@ -2718,7 +2593,6 @@ sub new
$self->{'data_source'} .= ":$host"; $self->{'data_source'} .= ":$host";
} }
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "varchar(255)"; $self->{'blob'} = "varchar(255)";
$self->{'text'} = "varchar(255)"; $self->{'text'} = "varchar(255)";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -2894,7 +2768,6 @@ sub new ...@@ -2894,7 +2768,6 @@ sub new
$self->{'cmp_name'} = "mimer"; $self->{'cmp_name'} = "mimer";
$self->{'data_source'} = "DBI:mimer:$database:$host"; $self->{'data_source'} = "DBI:mimer:$database:$host";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "binary varying(15000)"; $self->{'blob'} = "binary varying(15000)";
$self->{'text'} = "character varying(15000)"; $self->{'text'} = "character varying(15000)";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -2950,24 +2823,6 @@ sub new ...@@ -2950,24 +2823,6 @@ sub new
$limits{'order_by_unused'} = 1; $limits{'order_by_unused'} = 1;
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
$smds{'time'} = 1;
$smds{'q1'} = 'b'; # with time not supp by mysql ('')
$smds{'q2'} = 'b';
$smds{'q3'} = 'b'; # with time ('')
$smds{'q4'} = 'c'; # with time not supp by mysql (d)
$smds{'q5'} = 'b'; # with time not supp by mysql ('')
$smds{'q6'} = 'c'; # with time not supp by mysql ('')
$smds{'q7'} = 'c';
$smds{'q8'} = 'f';
$smds{'q9'} = 'c';
$smds{'q10'} = 'b';
$smds{'q11'} = 'b';
$smds{'q12'} = 'd';
$smds{'q13'} = 'c';
$smds{'q14'} = 'd';
$smds{'q15'} = 'd';
$smds{'q16'} = 'a';
$smds{'q17'} = 'c';
return $self; return $self;
} }
...@@ -3112,7 +2967,6 @@ sub new ...@@ -3112,7 +2967,6 @@ sub new
$self->{'cmp_name'} = "interbase"; $self->{'cmp_name'} = "interbase";
$self->{'data_source'} = "DBI:InterBase:database=$database:ib_dialect=3"; $self->{'data_source'} = "DBI:InterBase:database=$database:ib_dialect=3";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "blob"; $self->{'blob'} = "blob";
$self->{'text'} = ""; $self->{'text'} = "";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
...@@ -3166,25 +3020,6 @@ sub new ...@@ -3166,25 +3020,6 @@ sub new
$limits{'order_by_unused'} = 1; $limits{'order_by_unused'} = 1;
$limits{'working_all_fields'} = 1; $limits{'working_all_fields'} = 1;
$smds{'time'} = 1;
$smds{'q1'} = 'b'; # with time not supp by mysql ('')
$smds{'q2'} = 'b';
$smds{'q3'} = 'b'; # with time ('')
$smds{'q4'} = 'c'; # with time not supp by mysql (d)
$smds{'q5'} = 'b'; # with time not supp by mysql ('')
$smds{'q6'} = 'c'; # with time not supp by mysql ('')
$smds{'q7'} = 'c';
$smds{'q8'} = 'f';
$smds{'q9'} = 'c';
$smds{'q10'} = 'b';
$smds{'q11'} = 'b';
$smds{'q12'} = 'd';
$smds{'q13'} = 'c';
$smds{'q14'} = 'd';
$smds{'q15'} = 'd';
$smds{'q16'} = 'a';
$smds{'q17'} = 'c';
return $self; return $self;
} }
...@@ -3331,7 +3166,6 @@ sub new ...@@ -3331,7 +3166,6 @@ sub new
$self->{'cmp_name'} = "FrontBase"; $self->{'cmp_name'} = "FrontBase";
$self->{'data_source'} = "DBI:FB:dbname=$database;host=$host"; $self->{'data_source'} = "DBI:FB:dbname=$database;host=$host";
$self->{'limits'} = \%limits; $self->{'limits'} = \%limits;
$self->{'smds'} = \%smds;
$self->{'blob'} = "varchar(8000000)"; $self->{'blob'} = "varchar(8000000)";
$self->{'text'} = "varchar(8000000)"; $self->{'text'} = "varchar(8000000)";
$self->{'double_quotes'} = 1; # Can handle: 'Walker''s' $self->{'double_quotes'} = 1; # Can handle: 'Walker''s'
......
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