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
88206d4d
Commit
88206d4d
authored
Jan 29, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge akishkin@work.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/walrus/bk/40
parents
6dc436fa
7a740753
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
sql-bench/crash-me.sh
sql-bench/crash-me.sh
+33
-0
No files found.
sql-bench/crash-me.sh
View file @
88206d4d
...
@@ -2786,6 +2786,39 @@ sub check_constraint {
...
@@ -2786,6 +2786,39 @@ sub check_constraint {
print
"
$res
\n
"
;
print
"
$res
\n
"
;
}
}
sub make_time_r
{
my
$hour
=
shift
;
my
$minute
=
shift
;
my
$second
=
shift
;
$_
=
$limits
{
'time_format_inresult'
}
;
return
sprintf
"%02d:%02d:%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
/^iso
$/
)
;
return
sprintf
"%02d.%02d.%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
/^euro/
)
;
return
sprintf
"%02d:%02d %s"
,
(
$hour
>=
13?
(
$hour
-12
)
:
$hour
)
,
$minute
,
(
$hour
>=
13 ?
'PM'
:
'AM'
)
if
(
/^usa/
)
;
return
sprintf
"%02d%02d%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
/^HHMMSS/
)
;
return
sprintf
"%04d%02d%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
/^HHHHMMSS/
)
;
return
"UNKNOWN FORMAT"
;
}
sub make_time
{
my
$hour
=
shift
;
my
$minute
=
shift
;
my
$second
=
shift
;
return
sprintf
"%02d:%02d:%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
$limits
{
'time_format_ISO'
}
eq
"yes"
)
;
return
sprintf
"%02d.%02d.%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
$limits
{
'time_format_EUR'
}
eq
"yes"
)
;
return
sprintf
"%02d:%02d %s"
,
(
$hour
>=
13?
(
$hour
-12
)
:
$hour
)
,
$minute
,
(
$hour
>=
13 ?
'PM'
:
'AM'
)
if
(
$limits
{
'time_format_USA'
}
eq
"yes"
)
;
return
sprintf
"%02d%02d%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
$limits
{
'time_format_HHMMSS'
}
eq
"yes"
)
;
return
sprintf
"%04d%02d%02d"
,
(
$hour
%24
)
,
$minute
,
$second
if
(
$limits
{
'time_format_HHHHMMSS'
}
eq
"yes"
)
;
return
"UNKNOWN FORMAT"
;
}
sub make_date_r
{
sub make_date_r
{
my
$year
=
shift
;
my
$year
=
shift
;
my
$month
=
shift
;
my
$month
=
shift
;
...
...
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