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
cb68a2c7
Commit
cb68a2c7
authored
Apr 04, 2003
by
walrus@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crash-me.sh:
add sorted_group_by parameter
parent
288ca7e6
Changes
1
Hide 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 @
cb68a2c7
...
@@ -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