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
3a3a91ff
Commit
3a3a91ff
authored
Apr 12, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lp:732124: PBXT result file updates that were forgotten when patch was pushed.
parent
7a3a8b41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
mysql-test/suite/pbxt/r/union.result
mysql-test/suite/pbxt/r/union.result
+19
-3
mysql-test/suite/pbxt/t/union.test
mysql-test/suite/pbxt/t/union.test
+9
-0
No files found.
mysql-test/suite/pbxt/r/union.result
View file @
3a3a91ff
...
...
@@ -362,7 +362,7 @@ a
2
select found_rows();
found_rows()
6
5
SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION SELECT * FROM t2 LIMIT 100;
a
1
...
...
@@ -372,7 +372,7 @@ a
5
select found_rows();
found_rows()
6
5
SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 100 UNION SELECT * FROM t2;
a
1
...
...
@@ -405,7 +405,7 @@ a
4
select found_rows();
found_rows()
6
5
SELECT SQL_CALC_FOUND_ROWS * FROM t1 limit 2,2 UNION SELECT * FROM t2;
a
3
...
...
@@ -1166,9 +1166,12 @@ a b
select * from ((select * from t1 limit 1) union (select * from t1 limit 1)) a;
a b
1 a
2 b
select * from ((select * from t1 limit 1) union (select * from t1 limit 1) union (select * from t1 limit 1)) a;
a b
1 a
2 b
3 c
select * from ((((select * from t1))) union (select * from t1) union (select * from t1)) a;
a b
1 a
...
...
@@ -1426,4 +1429,17 @@ select _utf8'12' union select _latin1'12345';
12
12
12345
create table t1 (a int);
insert into t1 values (10),(10),(10),(2),(3),(4),(5),(6),(7),(8),(9),(1),(10);
select a from t1 where false UNION select a from t1 limit 8;
a
10
2
3
4
5
6
7
8
drop table t1;
End of 5.0 tests
mysql-test/suite/pbxt/t/union.test
View file @
3a3a91ff
...
...
@@ -904,6 +904,15 @@ drop table t1, t2;
#
select
_utf8
'12'
union
select
_latin1
'12345'
;
#
# lp:732124 union + limit returns wrong result
#
create
table
t1
(
a
int
);
insert
into
t1
values
(
10
),(
10
),(
10
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
1
),(
10
);
--
sorted_result
select
a
from
t1
where
false
UNION
select
a
from
t1
limit
8
;
drop
table
t1
;
--
disable_query_log
drop
database
pbxt
;
...
...
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