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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ea0f9d35
Commit
ea0f9d35
authored
Nov 16, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work.mysql.com:/home/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql
parents
0decc269
1a23c2e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
15 deletions
+27
-15
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
sql/item_func.cc
sql/item_func.cc
+26
-15
No files found.
BitKeeper/etc/logging_ok
View file @
ea0f9d35
monty@donna.mysql.com
monty@donna.mysql.com
sasha@mysql.sashanet.com
sasha@mysql.sashanet.com
serg@serg.mysql.com
sql/item_func.cc
View file @
ea0f9d35
...
@@ -1975,31 +1975,42 @@ bool Item_func_match::fix_index()
...
@@ -1975,31 +1975,42 @@ bool Item_func_match::fix_index()
}
}
}
}
uint
max_cnt
=
0
,
m
ax_key
=
0
;
uint
max_cnt
=
0
,
m
keys
=
0
;
for
(
key
=
0
;
key
<
fts
;
key
++
)
for
(
key
=
0
;
key
<
fts
;
key
++
)
{
{
if
(
ft_cnt
[
key
]
>
max_cnt
)
if
(
ft_cnt
[
key
]
>
max_cnt
)
{
{
max_cnt
=
ft_cnt
[
key
];
mkeys
=
0
;
max_key
=
ft_to_key
[
key
];
max_cnt
=
ft_cnt
[
mkeys
]
=
ft_cnt
[
key
];
ft_to_key
[
mkeys
]
=
ft_to_key
[
key
];
continue
;
}
if
(
ft_cnt
[
key
]
==
max_cnt
)
{
mkeys
++
;
ft_cnt
[
mkeys
]
=
ft_cnt
[
key
];
ft_to_key
[
mkeys
]
=
ft_to_key
[
key
];
continue
;
}
}
}
}
// for now, partial keys won't work. SerG
for
(
key
=
0
;
key
<=
mkeys
;
key
++
)
if
(
max_cnt
<
fields
.
elements
||
max_cnt
<
table
->
key_info
[
max_key
].
key_parts
)
{
{
my_printf_error
(
ER_FT_MATCHING_KEY_NOT_FOUND
,
// for now, partial keys won't work. SerG
ER
(
ER_FT_MATCHING_KEY_NOT_FOUND
),
MYF
(
0
));
if
(
max_cnt
<
fields
.
elements
||
return
1
;
max_cnt
<
table
->
key_info
[
ft_to_key
[
key
]].
key_parts
)
}
continue
;
this
->
key
=
max_key
;
this
->
key
=
ft_to_key
[
key
]
;
maybe_null
=
1
;
maybe_null
=
1
;
join_key
=
0
;
join_key
=
0
;
return
0
;
return
0
;
}
my_printf_error
(
ER_FT_MATCHING_KEY_NOT_FOUND
,
ER
(
ER_FT_MATCHING_KEY_NOT_FOUND
),
MYF
(
0
));
return
1
;
}
}
bool
Item_func_match
::
eq
(
const
Item
*
item
)
const
bool
Item_func_match
::
eq
(
const
Item
*
item
)
const
...
...
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