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
46beea06
Commit
46beea06
authored
Nov 16, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some new tests...................
parent
5a38621c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
0 deletions
+51
-0
mysql-test/r/derived.result
mysql-test/r/derived.result
+25
-0
mysql-test/r/select_found.result
mysql-test/r/select_found.result
+10
-0
mysql-test/t/derived.test
mysql-test/t/derived.test
+12
-0
mysql-test/t/select_found.test
mysql-test/t/select_found.test
+4
-0
No files found.
mysql-test/r/derived.result
View file @
46beea06
...
...
@@ -40,3 +40,28 @@ a
select 1 from (select 1);
1
1
drop table if exists t1;
create table t1(a int not null, t char(8), index(a));
SELECT * FROM (SELECT * FROM t1) ORDER BY a ASC LIMIT 0,20;
a t
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
drop table if exists t1;
mysql-test/r/select_found.result
View file @
46beea06
...
...
@@ -168,4 +168,14 @@ test2 2 2
SELECT FOUND_ROWS();
FOUND_ROWS()
2
SELECT SQL_CALC_FOUND_ROWS 1 FROM (SELECT 1) LIMIT 0;
1
SELECT FOUND_ROWS();
FOUND_ROWS()
1
SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 0;
titre numeropost maxnumrep
SELECT FOUND_ROWS();
FOUND_ROWS()
3
drop table t1;
mysql-test/t/derived.test
View file @
46beea06
...
...
@@ -22,3 +22,15 @@ drop table if exists t1.t2,t3;
select
*
from
(
select
1
);
select
a
from
(
select
1
as
a
);
select
1
from
(
select
1
);
drop
table
if
exists
t1
;
create
table
t1
(
a
int
not
null
,
t
char
(
8
),
index
(
a
));
disable_query_log
;
let
$
1
=
10000
;
while
(
$
1
)
{
eval
insert
into
t1
values
(
$
1
,
'$1'
);
dec
$
1
;
}
enable_query_log
;
SELECT
*
FROM
(
SELECT
*
FROM
t1
)
ORDER
BY
a
ASC
LIMIT
0
,
20
;
drop
table
if
exists
t1
;
\ No newline at end of file
mysql-test/t/select_found.test
View file @
46beea06
...
...
@@ -84,4 +84,8 @@ INSERT INTO t1 (titre,maxnumrep) VALUES
(
'test1'
,
'1'
),(
'test2'
,
'2'
),(
'test3'
,
'3'
);
SELECT
SQL_CALC_FOUND_ROWS
titre
,
numeropost
,
maxnumrep
FROM
t1
WHERE
numeropost
IN
(
1
,
2
)
ORDER
BY
maxnumrep
DESC
LIMIT
0
,
1
;
SELECT
FOUND_ROWS
();
SELECT
SQL_CALC_FOUND_ROWS
1
FROM
(
SELECT
1
)
LIMIT
0
;
SELECT
FOUND_ROWS
();
SELECT
SQL_CALC_FOUND_ROWS
*
FROM
t1
LIMIT
0
;
SELECT
FOUND_ROWS
();
drop
table
t1
;
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