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
0264ade4
Commit
0264ade4
authored
Aug 23, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed LIMIT clause printing (BUG#4839)
parent
618e65cd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
mysql-test/r/view.result
mysql-test/r/view.result
+5
-0
mysql-test/t/view.test
mysql-test/t/view.test
+7
-0
sql/sql_lex.cc
sql/sql_lex.cc
+3
-2
No files found.
mysql-test/r/view.result
View file @
0264ade4
...
...
@@ -1042,3 +1042,8 @@ SHOW TABLES;
Tables_in_test table_type
t2 BASE TABLE
v4 VIEW
CREATE VIEW v1 AS SELECT EXISTS (SELECT 1 UNION SELECT 2);
select * from v1;
EXISTS (SELECT 1 UNION SELECT 2)
1
drop view v1;
mysql-test/t/view.test
View file @
0264ade4
...
...
@@ -980,3 +980,10 @@ drop table t1;
--
error
1096
CREATE
VIEW
v02
AS
SELECT
*
FROM
DUAL
;
SHOW
TABLES
;
#
# EXISTS with UNION VIEW
#
CREATE
VIEW
v1
AS
SELECT
EXISTS
(
SELECT
1
UNION
SELECT
2
);
select
*
from
v1
;
drop
view
v1
;
sql/sql_lex.cc
View file @
0264ade4
...
...
@@ -1481,8 +1481,9 @@ void st_select_lex::print_order(String *str, ORDER *order)
void
st_select_lex
::
print_limit
(
THD
*
thd
,
String
*
str
)
{
Item_subselect
*
item
=
master_unit
()
->
item
;
if
(
item
&&
SELECT_LEX_UNIT
*
unit
=
master_unit
();
Item_subselect
*
item
=
unit
->
item
;
if
(
item
&&
unit
->
global_parameters
==
this
&&
(
item
->
substype
()
==
Item_subselect
::
EXISTS_SUBS
||
item
->
substype
()
==
Item_subselect
::
IN_SUBS
||
item
->
substype
()
==
Item_subselect
::
ALL_SUBS
))
...
...
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