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
7fc93fd6
Commit
7fc93fd6
authored
Apr 26, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt a test from MySQL
parent
14fe6dd2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1780 additions
and
0 deletions
+1780
-0
mysql-test/suite/innodb/include/innodb_isolation_selects.inc
mysql-test/suite/innodb/include/innodb_isolation_selects.inc
+15
-0
mysql-test/suite/innodb/r/innodb-isolation.result
mysql-test/suite/innodb/r/innodb-isolation.result
+1411
-0
mysql-test/suite/innodb/t/innodb-isolation.test
mysql-test/suite/innodb/t/innodb-isolation.test
+354
-0
No files found.
mysql-test/suite/innodb/include/innodb_isolation_selects.inc
0 → 100644
View file @
7fc93fd6
# These same selects are used many times in innodb_isolation.test
--
echo
########## innodb_isolation_selects.inc ##########
SELECT
*
FROM
t1
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
COUNT
(
c1
)
FROM
t1
;
SELECT
COUNT
(
c2
)
FROM
t1
;
# Uses secondary index k2
SELECT
COUNT
(
c3
)
FROM
t1
;
# Uses clustered index
SELECT
SUM
(
c1
)
FROM
t1
;
# Uses secondary index
SELECT
SUM
(
c2
)
FROM
t1
;
# Uses secondary index
SELECT
AVG
(
c1
),
MAX
(
c1
),
MIN
(
c2
),
AVG
(
c3
),
SUM
(
c4
)
FROM
t1
;
# Uses clustered index
SELECT
c1
,
c2
FROM
t1
WHERE
c1
>
((
SELECT
COUNT
(
*
)
FROM
t1
)
/
2
);
SELECT
COUNT
(
c2
)
FROM
t1
WHERE
c1
>
((
SELECT
COUNT
(
*
)
FROM
t1
)
/
2
);
SELECT
COUNT
(
*
)
FROM
t1
WHERE
c1
>
(
SELECT
AVG
(
c1
)
FROM
t1
);
--
echo
###############################################
mysql-test/suite/innodb/r/innodb-isolation.result
0 → 100644
View file @
7fc93fd6
This diff is collapsed.
Click to expand it.
mysql-test/suite/innodb/t/innodb-isolation.test
0 → 100644
View file @
7fc93fd6
This diff is collapsed.
Click to expand it.
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