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
fed6f229
Commit
fed6f229
authored
Jan 17, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect merge
parent
8847e411
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
39 deletions
+1
-39
sql/sql_select.cc
sql/sql_select.cc
+1
-39
No files found.
sql/sql_select.cc
View file @
fed6f229
...
...
@@ -14587,6 +14587,7 @@ TABLE *create_duplicate_weedout_tmp_table(THD *thd,
&tmpname, (uint) strlen(path)+1,
&group_buff, (!using_unique_constraint ?
uniq_tuple_length_arg : 0),
&bitmaps, bitmap_buffer_size(1)*3,
NullS))
{
if (temp_pool_slot != MY_BIT_NONE)
...
...
@@ -16088,45 +16089,6 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records)
}
/*
SemiJoinDuplicateElimination: Weed out duplicate row combinations
SYNPOSIS
do_sj_dups_weedout()
thd Thread handle
sjtbl Duplicate weedout table
DESCRIPTION
Try storing current record combination of outer tables (i.e. their
rowids) in the temporary table. This records the fact that we've seen
this record combination and also tells us if we've seen it before.
RETURN
-1 Error
1 The row combination is a duplicate (discard it)
0 The row combination is not a duplicate (continue)
*/
int
do_sj_dups_weedout
(
THD
*
thd
,
SJ_TMP_TABLE
*
sjtbl
)
{
int
error
;
SJ_TMP_TABLE
::
TAB
*
tab
=
sjtbl
->
tabs
;
SJ_TMP_TABLE
::
TAB
*
tab_end
=
sjtbl
->
tabs_end
;
DBUG_ENTER
(
"do_sj_dups_weedout"
);
if
(
sjtbl
->
is_confluent
)
{
if
(
sjtbl
->
have_confluent_row
)
DBUG_RETURN
(
1
);
else
{
sjtbl
->
have_confluent_row
=
TRUE
;
DBUG_RETURN
(
0
);
}
}
/*
SemiJoinDuplicateElimination: Weed out duplicate row combinations
...
...
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