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
7f51b1d3
Commit
7f51b1d3
authored
Apr 28, 2003
by
bell@laptop.sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation fixed according bug 185 fixing patch (1.1551 03/04/23 00:
parent
6a83d375
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
Docs/internals.texi
Docs/internals.texi
+13
-4
No files found.
BitKeeper/etc/logging_ok
View file @
7f51b1d3
...
@@ -13,6 +13,7 @@ arjen@george.bitbike.com
...
@@ -13,6 +13,7 @@ arjen@george.bitbike.com
bar@bar.mysql.r18.ru
bar@bar.mysql.r18.ru
bar@bar.udmsearch.izhnet.ru
bar@bar.udmsearch.izhnet.ru
bar@gw.udmsearch.izhnet.ru
bar@gw.udmsearch.izhnet.ru
bell@laptop.sanja.is.com.ua
bell@sanja.is.com.ua
bell@sanja.is.com.ua
bk@admin.bk
bk@admin.bk
davida@isil.mysql.com
davida@isil.mysql.com
...
...
Docs/internals.texi
View file @
7f51b1d3
...
@@ -649,7 +649,7 @@ Item_in_subselect inherit mechanism of getting value from
...
@@ -649,7 +649,7 @@ Item_in_subselect inherit mechanism of getting value from
Item
_
exists
_
subselect.
Item
_
exists
_
subselect.
@item
@item
Select
_
transformer stores reference to left expression in its
Select
_
transformer stores reference to left expression in its
conditions: (in WHERE in case 'a' and in a HAVING in case 'b')
conditions: (in WHERE
&
HAVING
in case 'a' and in a HAVING in case 'b')
@item
@item
Item from item list of this select (t2.a) can be referred with special
Item from item list of this select (t2.a) can be referred with special
reference (Item
_
ref
_
null
_
helper or Item
_
asterisk
_
remover).
reference (Item
_
ref
_
null
_
helper or Item
_
asterisk
_
remover).
...
@@ -704,6 +704,13 @@ ORDER BY without LIMIT here.
...
@@ -704,6 +704,13 @@ ORDER BY without LIMIT here.
If IN subselect union condition of every select in UNION will be changed
If IN subselect union condition of every select in UNION will be changed
personally.
personally.
If condition should be added to WHERE clause it will be presented as
"(item OR item IS NULL)" and Item
_
is
_
not
_
null
_
test(item) will be added
to HAVING clause. Item
_
is
_
not
_
null
_
test register NULL value as
Item
_
ref
_
null
_
helper does it and return FALSE if argument is NULL.
With above trick we will register NULL value of Item even in case
of index optimization of WHERE clause (case 'a' of following example).
Following is examples of IN transformations:
Following is examples of IN transformations:
@example
@example
a) <left
_
expression> IN (SELECT <item> FROM t
a) <left
_
expression> IN (SELECT <item> FROM t
...
@@ -712,8 +719,11 @@ a) <left_expression> IN (SELECT <item> FROM t
...
@@ -712,8 +719,11 @@ a) <left_expression> IN (SELECT <item> FROM t
will be represented as
will be represented as
(SELECT 1 FROM t
(SELECT 1 FROM t
WHERE <where
_
exp> and
WHERE
Item
_
ref(<cached
_
left
_
expression>)=<Item
_
asterisk
_
remover(<Item>)>)
<where
_
exp> and
(Item
_
ref(<cached
_
left
_
expression>)=<Item
_
asterisk
_
remover(<Item>)> or
<Item> is null)
HAVING Item
_
is
_
not
_
null
_
test(<Item>))
b) <left
_
expression> IN (SELECT <item> FROM t
b) <left
_
expression> IN (SELECT <item> FROM t
...
@@ -721,7 +731,6 @@ b) <left_expression> IN (SELECT <item> FROM t
...
@@ -721,7 +731,6 @@ b) <left_expression> IN (SELECT <item> FROM t
ORDER BY 1)
ORDER BY 1)
will be represented as
will be represented as
(SELECT <item> as ref
_
null
_
helper FROM t
(SELECT <item> as ref
_
null
_
helper FROM t
HAVING <having
_
exp> AND
HAVING <having
_
exp> AND
Item
_
ref(<cached
_
left
_
expression>) = ref
_
null
_
helper)
Item
_
ref(<cached
_
left
_
expression>) = ref
_
null
_
helper)
...
...
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