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
54312ab1
Commit
54312ab1
authored
Oct 09, 2000
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
4ce64d45
828e9215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
sql/sql_select.cc
sql/sql_select.cc
+7
-15
No files found.
sql/sql_select.cc
View file @
54312ab1
...
...
@@ -24,9 +24,7 @@
#include "mysql_priv.h"
#include "sql_select.h"
#if 0 // Sergei - remove when fixed
#include "opt_ft.h"
#endif
#include "opt_ft.h"
#include <m_ctype.h>
#include <hash.h>
...
...
@@ -1321,16 +1319,16 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array,
if
(
func
->
functype
()
==
Item_func
::
FT_FUNC
)
cond_func
=
(
Item_func_match
*
)
cond
;
else
if
(
arg0
->
type
()
==
Item
::
FUNC_ITEM
&&
arg0
->
functype
()
==
Item_func
::
FT_FUNC
&&
(
func
->
functype
()
==
Item_func
::
GE_FUNC
||
else
if
((
func
->
functype
()
==
Item_func
::
GE_FUNC
||
func
->
functype
()
==
Item_func
::
GT_FUNC
)
&&
arg0
->
type
()
==
Item
::
FUNC_ITEM
&&
arg0
->
functype
()
==
Item_func
::
FT_FUNC
&&
arg1
->
const_item
()
&&
arg1
->
val
()
>=
0
)
cond_func
=
(
Item_func_match
*
)
arg0
;
else
if
(
arg1
->
type
()
==
Item
::
FUNC_ITEM
&&
arg1
->
functype
()
==
Item_func
::
FT_FUNC
&&
(
func
->
functype
()
==
Item_func
::
LE_FUNC
||
else
if
((
func
->
functype
()
==
Item_func
::
LE_FUNC
||
func
->
functype
()
==
Item_func
::
LT_FUNC
)
&&
arg1
->
type
()
==
Item
::
FUNC_ITEM
&&
arg1
->
functype
()
==
Item_func
::
FT_FUNC
&&
arg0
->
const_item
()
&&
arg0
->
val
()
>=
0
)
cond_func
=
(
Item_func_match
*
)
arg1
;
}
...
...
@@ -5049,12 +5047,6 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit)
DBUG_RETURN
(
0
);
// Can't use index.
}
// Sergei - remove this one when you have added opt_ft stuff
QUICK_SELECT
*
get_ft_or_quick_select_for_ref
(
TABLE
*
table
,
JOIN_TAB
*
tab
)
{
return
get_quick_select_for_ref
(
table
,
&
tab
->
ref
);
}
static
int
create_sort_index
(
JOIN_TAB
*
tab
,
ORDER
*
order
,
ha_rows
select_limit
)
{
...
...
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