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
f35f4329
Commit
f35f4329
authored
Sep 11, 2003
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
dc169f42
be05042b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
innobase/row/row0sel.c
innobase/row/row0sel.c
+12
-16
No files found.
innobase/row/row0sel.c
View file @
f35f4329
...
...
@@ -2810,21 +2810,6 @@ row_search_for_mysql(
mode
=
pcur
->
search_mode
;
}
if
((
direction
==
ROW_SEL_NEXT
||
direction
==
ROW_SEL_PREV
)
&&
pcur
->
old_stored
!=
BTR_PCUR_OLD_STORED
)
{
/* MySQL sometimes seems to do fetch next or fetch prev even
if the search condition is unique; this can, for example,
happen with the HANDLER commands; we do not always store the
pcur position in this case, so we cannot restore cursor
position, and must return immediately */
/* printf("%s record not found 1\n", index->name); */
trx
->
op_info
=
(
char
*
)
""
;
return
(
DB_RECORD_NOT_FOUND
);
}
mtr_start
(
&
mtr
);
/* In a search where at most one record in the index may match, we
...
...
@@ -2841,6 +2826,16 @@ row_search_for_mysql(
&&
dtuple_get_n_fields
(
search_tuple
)
==
dict_index_get_n_unique
(
index
))
{
unique_search
=
TRUE
;
/* Even if the condition is unique, MySQL seems to try to
retrieve also a second row if a primary key contains more than
1 column. Return immediately if this is not a HANDLER
command. */
if
(
direction
!=
0
&&
!
prebuilt
->
used_in_HANDLER
)
{
return
(
DB_RECORD_NOT_FOUND
);
}
}
/*-------------------------------------------------------------*/
...
...
@@ -2854,6 +2849,7 @@ row_search_for_mysql(
if
(
unique_search
&&
index
->
type
&
DICT_CLUSTERED
&&
direction
==
0
&&
!
prebuilt
->
templ_contains_blob
&&
!
prebuilt
->
used_in_HANDLER
&&
(
prebuilt
->
mysql_row_len
<
UNIV_PAGE_SIZE
/
8
))
{
...
...
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