mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Additions for CHECK table + update of benchmarks
Docs/manual.texi: Updated for 3.23.23 myisam/mi_check.c: Fix for CHECK table sql-bench/bench-init.pl.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql-bench/server-cfg.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql-bench/test-insert.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql-bench/test-select.sh: Fix of benchmarks for PostgreSQL 7.0.2 sql/ha_myisam.cc: Fix for CHECK table sql/handler.h: Fix for CHECK table sql/lex.h: Fix for CHECK table sql/sql_load.cc: Fix bug in delayed keys sql/sql_table.cc: Fix for CHECK table sql/sql_yacc.yy: Fix for CHECK table sql/structs.h: Fix wrong type
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#@PERL@
|
||||
#!@PERL@
|
||||
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
@ -215,16 +215,19 @@ if ($opt_fast && defined($server->{vacuum}))
|
||||
#### insert $opt_loop_count records with duplicate id
|
||||
####
|
||||
|
||||
print "Testing insert of duplicates\n";
|
||||
$loop_time=new Benchmark;
|
||||
for ($i=0 ; $i < $opt_loop_count ; $i++)
|
||||
if ($limits->{'unique_index'})
|
||||
{
|
||||
$tmpvar^= ((($tmpvar + 63) + $i)*3 % $opt_loop_count);
|
||||
$tmp=$tmpvar % ($total_rows);
|
||||
$tmpquery = "$query" . "$tmp" . ",1,2,'D')";
|
||||
if ($dbh->do($tmpquery))
|
||||
print "Testing insert of duplicates\n";
|
||||
$loop_time=new Benchmark;
|
||||
for ($i=0 ; $i < $opt_loop_count ; $i++)
|
||||
{
|
||||
die "Didn't get an error when inserting duplicate record $tmp\n";
|
||||
$tmpvar^= ((($tmpvar + 63) + $i)*3 % $opt_loop_count);
|
||||
$tmp=$tmpvar % ($total_rows);
|
||||
$tmpquery = "$query" . "$tmp" . ",1,2,'D')";
|
||||
if ($dbh->do($tmpquery))
|
||||
{
|
||||
die "Didn't get an error when inserting duplicate record $tmp\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user