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
bb58a18b
Commit
bb58a18b
authored
Oct 23, 2014
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better comments
parent
d67c2313
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
sql/table.cc
sql/table.cc
+10
-1
No files found.
sql/table.cc
View file @
bb58a18b
...
...
@@ -6067,10 +6067,19 @@ bool TABLE::alloc_keys(uint key_count)
}
/*
Given a field, fill key_part_info
@param keyinfo Key to where key part is added (we will
only adjust key_length there)
@param field IN Table field for which key part is needed
@param key_part_info OUT key part structure to be filled.
@param fieldnr Field's number.
*/
void
TABLE
::
create_key_part_by_field
(
KEY
*
keyinfo
,
KEY_PART_INFO
*
key_part_info
,
Field
*
field
,
uint
fieldnr
)
{
{
DBUG_ASSERT
(
field
->
field_index
+
1
==
(
int
)
fieldnr
);
field
->
flags
|=
PART_KEY_FLAG
;
key_part_info
->
null_bit
=
field
->
null_bit
;
key_part_info
->
null_offset
=
(
uint
)
(
field
->
null_ptr
-
...
...
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