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
139ce6cb
Commit
139ce6cb
authored
Sep 21, 2015
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for 32bit system. Not meaninful for this test but volatile parameters replaced.
parent
c8db0df2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
mysql-test/r/analyze_format_json.result
mysql-test/r/analyze_format_json.result
+12
-12
mysql-test/t/analyze_format_json.test
mysql-test/t/analyze_format_json.test
+4
-4
No files found.
mysql-test/r/analyze_format_json.result
View file @
139ce6cb
...
...
@@ -487,14 +487,14 @@ ANALYZE
"query_block": {
"select_id": 1,
"r_loops": 1,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"having_condition": "(TOP > a)",
"filesort": {
"r_loops": 1,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"r_used_priority_queue": false,
"r_output_rows": 0,
"
r_buffer_size": "5Kb
",
"
volatile parameter": "REPLACED
",
"temporary_table": {
"table": {
"table_name": "t2",
...
...
@@ -502,7 +502,7 @@ ANALYZE
"r_loops": 1,
"rows": 256,
"r_rows": 256,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"filtered": 100,
"r_filtered": 100
}
...
...
@@ -517,13 +517,13 @@ ANALYZE
"query_block": {
"select_id": 1,
"r_loops": 1,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"filesort": {
"r_loops": 1,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"r_used_priority_queue": false,
"r_output_rows": 256,
"
r_buffer_size": "5Kb
",
"
volatile parameter": "REPLACED
",
"temporary_table": {
"table": {
"table_name": "t2",
...
...
@@ -531,7 +531,7 @@ ANALYZE
"r_loops": 1,
"rows": 256,
"r_rows": 256,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"filtered": 100,
"r_filtered": 100
}
...
...
@@ -557,13 +557,13 @@ ANALYZE
"query_block": {
"select_id": 1,
"r_loops": 1,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"filesort": {
"r_loops": 1,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"r_used_priority_queue": false,
"r_output_rows": 256,
"
r_buffer_size": "5Kb
",
"
volatile parameter": "REPLACED
",
"temporary_table": {
"table": {
"table_name": "t2",
...
...
@@ -571,7 +571,7 @@ ANALYZE
"r_loops": 1,
"rows": 256,
"r_rows": 256,
"
r_total_time_ms
": "REPLACED",
"
volatile parameter
": "REPLACED",
"filtered": 100,
"r_filtered": 100
}
...
...
mysql-test/t/analyze_format_json.test
View file @
139ce6cb
...
...
@@ -164,15 +164,15 @@ create table t2 (
);
insert
into
t2
select
A
.
a
*
1000
+
B
.
a
,
A
.
a
*
1000
+
B
.
a
from
t0
A
,
t1
B
;
--
echo
# normal HAVING
--
replace_regex
/
"
r_total_time_ms"
:
[
0
-
9
]
*
[
.
]
?
[
0
-
9
]
*/
"r_total_time_ms"
:
"REPLACED"
/
--
replace_regex
/
"
(r_total_time_ms|r_buffer_size)"
:
.*?
,
/
"volatile parameter"
:
"REPLACED"
,
/
analyze
format
=
json
select
a
,
max
(
b
)
as
TOP
from
t2
group
by
a
having
TOP
>
a
;
--
echo
# HAVING is always TRUE (not printed)
--
replace_regex
/
"
r_total_time_ms"
:
[
0
-
9
]
*
[
.
]
?
[
0
-
9
]
*/
"r_total_time_ms"
:
"REPLACED"
/
--
replace_regex
/
"
(r_total_time_ms|r_buffer_size)"
:
.*?
,
/
"volatile parameter"
:
"REPLACED"
,
/
analyze
format
=
json
select
a
,
max
(
b
)
as
TOP
from
t2
group
by
a
having
1
<>
2
;
--
echo
# HAVING is always FALSE (intercepted by message)
--
replace_regex
/
"
r_total_time_ms"
:
[
0
-
9
]
*
[
.
]
?
[
0
-
9
]
*/
"r_total_time_ms"
:
"REPLACED"
/
--
replace_regex
/
"
(r_total_time_ms|r_buffer_size)"
:
.*?
,
/
"volatile parameter"
:
"REPLACED"
,
/
analyze
format
=
json
select
a
,
max
(
b
)
as
TOP
from
t2
group
by
a
having
1
=
2
;
--
echo
# HAVING is absent
--
replace_regex
/
"
r_total_time_ms"
:
[
0
-
9
]
*
[
.
]
?
[
0
-
9
]
*/
"r_total_time_ms"
:
"REPLACED"
/
--
replace_regex
/
"
(r_total_time_ms|r_buffer_size)"
:
.*?
,
/
"volatile parameter"
:
"REPLACED"
,
/
analyze
format
=
json
select
a
,
max
(
b
)
as
TOP
from
t2
group
by
a
;
drop
table
t0
,
t1
,
t2
;
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