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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a31ff434
Commit
a31ff434
authored
Apr 04, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crash-me.sh:
add sorted_group_by parameter sql-bench/crash-me.sh: add sorted_group_by parameter
parent
a3e8727c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
sql-bench/crash-me.sh
sql-bench/crash-me.sh
+45
-0
No files found.
sql-bench/crash-me.sh
View file @
a31ff434
...
@@ -2734,6 +2734,51 @@ assert("drop table crash_me_n $drop_attr");
...
@@ -2734,6 +2734,51 @@ assert("drop table crash_me_n $drop_attr");
$key
=
'sorted_group_by'
;
$prompt
=
'Group by always sorted'
;
if
(!
defined
(
$limits
{
$key
}))
{
save_incomplete
(
$key
,
$prompt
)
;
print
"
$prompt
="
;
safe_query_l
(
$key
,[
"create table crash_me_t1 (a int not null, b int not null)"
,
"insert into crash_me_t1 values (1,1)"
,
"insert into crash_me_t1 values (1,2)"
,
"insert into crash_me_t1 values (3,1)"
,
"insert into crash_me_t1 values (3,2)"
,
"insert into crash_me_t1 values (2,2)"
,
"insert into crash_me_t1 values (2,1)"
,
"create table crash_me_t2 (a int not null, b int not null)"
,
"create index crash_me_t2_ind on crash_me_t2 (a)"
,
"insert into crash_me_t2 values (1,3)"
,
"insert into crash_me_t2 values (3,1)"
,
"insert into crash_me_t2 values (2,2)"
,
"insert into crash_me_t2 values (1,1)"
])
;
my
$bigqry
=
"select crash_me_t1.a,crash_me_t2.b from "
.
"crash_me_t1,crash_me_t2 where crash_me_t1.a=crash_me_t2.a "
.
"group by crash_me_t1.a,crash_me_t2.b"
;
my
$limit
=
'no'
;
my
$rs
=
get_recordset
(
$key
,
$bigqry
)
;
print_recordset
(
$key
,
$rs
)
;
if
(
defined
(
$rs
))
{
if
(
compare_recordset
(
$key
,
$rs
,[[1,1],[1,3],[2,2],[3,1]]
)
eq 0
)
{
$limit
=
'yes'
}
}
else
{
add_log
(
$key
,
"error: "
.
$DBI
::errstr
)
;
}
print
"
$limit
\n
"
;
safe_query_l
(
$key
,[
"drop table crash_me_t1"
,
"drop table crash_me_t2"
])
;
save_config_data
(
$key
,
$limit
,
$prompt
)
;
}
else
{
print
"
$prompt
=
$limits
{
$key
} (cashed)
\n
"
;
}
#
#
...
...
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