Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9657cddd
Commit
9657cddd
authored
Dec 16, 2002
by
walrus@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add log lines to crash-me result file
parent
8a46cc38
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
293 additions
and
116 deletions
+293
-116
sql-bench/crash-me.sh
sql-bench/crash-me.sh
+280
-104
sql-bench/server-cfg.sh
sql-bench/server-cfg.sh
+13
-12
No files found.
sql-bench/crash-me.sh
View file @
9657cddd
This diff is collapsed.
Click to expand it.
sql-bench/server-cfg.sh
View file @
9657cddd
#!@PERL@
#!@PERL@
# -*- perl -*-
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
#
#
# This library is free software; you can redistribute it and/or
# This library is free software; you can redistribute it and/or
...
@@ -671,9 +672,9 @@ sub create
...
@@ -671,9 +672,9 @@ sub create
$field
=
~ s/int
\(\d
*
\)
/int/
;
$field
=
~ s/int
\(\d
*
\)
/int/
;
$field
=
~ s/float
\(\d
*
,
\d
*
\)
/float/
;
$field
=
~ s/float
\(\d
*
,
\d
*
\)
/float/
;
$field
=
~ s/ double/ float/
;
$field
=
~ s/ double/ float/
;
$field
=
~ s/ decimal/ float/i
;
#
$field =~ s/ decimal/ float/i;
$field
=
~ s/ big_decimal/ float/i
;
#
$field =~ s/ big_decimal/ float/i;
$field
=
~ s/
date
/ int/i
;
#
$field =~ s/ date/ int/i;
# Pg doesn't have blob, it has text instead
# Pg doesn't have blob, it has text instead
$field
=
~ s/ blob/ text/
;
$field
=
~ s/ blob/ text/
;
$query
.
=
$field
.
','
;
$query
.
=
$field
.
','
;
...
@@ -946,9 +947,9 @@ sub create
...
@@ -946,9 +947,9 @@ sub create
$field
=
~ s/ double/ float/i
;
$field
=
~ s/ double/ float/i
;
# Solid doesn't have blob, it has long varchar
# Solid doesn't have blob, it has long varchar
$field
=
~ s/ blob/ long varchar/
;
$field
=
~ s/ blob/ long varchar/
;
$field
=
~ s/ decimal/ float/i
;
#
$field =~ s/ decimal/ float/i;
$field
=
~ s/ big_decimal/ float/i
;
#
$field =~ s/ big_decimal/ float/i;
$field
=
~ s/
date
/ int/i
;
#
$field =~ s/ date/ int/i;
$query
.
=
$field
.
','
;
$query
.
=
$field
.
','
;
}
}
substr
(
$query
,-1
)=
")"
;
# Remove last ',';
substr
(
$query
,-1
)=
")"
;
# Remove last ',';
...
@@ -1194,9 +1195,9 @@ sub create
...
@@ -1194,9 +1195,9 @@ sub create
$field
=
~ s/ blob/ text/
;
$field
=
~ s/ blob/ text/
;
$field
=
~ s/ varchar
\(
(
\d
+
)
\)
/ char
(
$1
,3
)
/
;
$field
=
~ s/ varchar
\(
(
\d
+
)
\)
/ char
(
$1
,3
)
/
;
$field
=
~ s/ char
\(
(
\d
+
)
\)
/ char
(
$1
,3
)
/
;
$field
=
~ s/ char
\(
(
\d
+
)
\)
/ char
(
$1
,3
)
/
;
$field
=
~ s/ decimal/ float/i
;
#
$field =~ s/ decimal/ float/i;
$field
=
~ s/ big_decimal/ longfloat/i
;
#
$field =~ s/ big_decimal/ longfloat/i;
$field
=
~ s/
date
/ int/i
;
#
$field =~ s/ date/ int/i;
$field
=
~ s/ float
(
.
*
)
/ float/i
;
$field
=
~ s/ float
(
.
*
)
/ float/i
;
if
(
$field
=
~ / int
\(
(
\d
+
)
\)
/
)
{
if
(
$field
=
~ / int
\(
(
\d
+
)
\)
/
)
{
if
(
$1
>
4
)
{
if
(
$1
>
4
)
{
...
@@ -2896,8 +2897,8 @@ sub create
...
@@ -2896,8 +2897,8 @@ sub create
$query
=
"create table
$table_name
("
;
$query
=
"create table
$table_name
("
;
foreach
$field
(
@
$fields
)
foreach
$field
(
@
$fields
)
{
{
$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/ tinyint
\(
.
*
\)
/ smallint/i
;
$field
=
~ s/ tinyint
\(
.
*
\)
/ smallint/i
;
$field
=
~ s/ smallint
\(
.
*
\)
/ smallint/i
;
$field
=
~ s/ smallint
\(
.
*
\)
/ smallint/i
;
$field
=
~ s/ mediumint/ integer/i
;
$field
=
~ s/ mediumint/ integer/i
;
...
@@ -3092,7 +3093,7 @@ sub create
...
@@ -3092,7 +3093,7 @@ sub create
$query
=
"create table
$table_name
("
;
$query
=
"create table
$table_name
("
;
foreach
$field
(
@
$fields
)
foreach
$field
(
@
$fields
)
{
{
$field
=
~ s/ big_decimal/ decimal/i
;
#
$field =~ s/ big_decimal/ decimal/i;
$field
=
~ s/ double/ double precision/i
;
$field
=
~ s/ double/ double precision/i
;
$field
=
~ s/ tinyint/ smallint/i
;
$field
=
~ s/ tinyint/ smallint/i
;
$field
=
~ s/ mediumint/ integer/i
;
$field
=
~ s/ mediumint/ integer/i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment