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
96889ca9
Commit
96889ca9
authored
Nov 14, 2007
by
vasil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Non-functional change: convert the switch in convert_search_mode_to_innobase()
to the InnoDB coding style.
parent
38884f45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
32 deletions
+39
-32
handler/ha_innodb.cc
handler/ha_innodb.cc
+39
-32
No files found.
handler/ha_innodb.cc
View file @
96889ca9
...
...
@@ -3976,15 +3976,23 @@ convert_search_mode_to_innobase(
enum
ha_rkey_function
find_flag
)
{
switch
(
find_flag
)
{
case
HA_READ_KEY_EXACT
:
return
(
PAGE_CUR_GE
);
/* the above does not require the index to be UNIQUE */
case
HA_READ_KEY_OR_NEXT
:
return
(
PAGE_CUR_GE
);
case
HA_READ_KEY_OR_PREV
:
return
(
PAGE_CUR_LE
);
case
HA_READ_AFTER_KEY
:
return
(
PAGE_CUR_G
);
case
HA_READ_BEFORE_KEY
:
return
(
PAGE_CUR_L
);
case
HA_READ_PREFIX
:
return
(
PAGE_CUR_GE
);
case
HA_READ_PREFIX_LAST
:
return
(
PAGE_CUR_LE
);
case
HA_READ_PREFIX_LAST_OR_PREV
:
return
(
PAGE_CUR_LE
);
case
HA_READ_KEY_EXACT
:
/* this does not require the index to be UNIQUE */
return
(
PAGE_CUR_GE
);
case
HA_READ_KEY_OR_NEXT
:
return
(
PAGE_CUR_GE
);
case
HA_READ_KEY_OR_PREV
:
return
(
PAGE_CUR_LE
);
case
HA_READ_AFTER_KEY
:
return
(
PAGE_CUR_G
);
case
HA_READ_BEFORE_KEY
:
return
(
PAGE_CUR_L
);
case
HA_READ_PREFIX
:
return
(
PAGE_CUR_GE
);
case
HA_READ_PREFIX_LAST
:
return
(
PAGE_CUR_LE
);
case
HA_READ_PREFIX_LAST_OR_PREV
:
return
(
PAGE_CUR_LE
);
/* In MySQL-4.0 HA_READ_PREFIX and HA_READ_PREFIX_LAST always
pass a complete-field prefix of a key value as the search
tuple. I.e., it is not allowed that the last field would
...
...
@@ -4006,8 +4014,7 @@ convert_search_mode_to_innobase(
return
(
PAGE_CUR_UNSUPP
);
/* do not use "default:" in order to produce a gcc warning:
enumeration value '...' not handled in switch
(if -Wswitch or -Wall is used)
*/
(if -Wswitch or -Wall is used) */
}
my_error
(
ER_CHECK_NOT_IMPLEMENTED
,
MYF
(
0
),
"this functionality"
);
...
...
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