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
3e4bdf60
Commit
3e4bdf60
authored
Dec 10, 2001
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for truncation operator in indexless bolelan fts
mysys/queue.c: /* comment added */
parent
eb961ab0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+1
-1
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+1
-1
mysys/queues.c
mysys/queues.c
+5
-1
No files found.
mysql-test/r/fulltext.result
View file @
3e4bdf60
...
@@ -55,7 +55,7 @@ Full-text indexes are called collections 1
...
@@ -55,7 +55,7 @@ Full-text indexes are called collections 1
Only MyISAM tables support collections 2
Only MyISAM tables support collections 2
Function MATCH ... AGAINST() is used to do a search 0
Function MATCH ... AGAINST() is used to do a search 0
Full-text search in MySQL implements vector space model 0
Full-text search in MySQL implements vector space model 0
select * from t1 where MATCH a AGAINST ("sear
ch
" IN BOOLEAN MODE);
select * from t1 where MATCH a AGAINST ("sear
*
" IN BOOLEAN MODE);
a b
a b
Full-text search in MySQL implements vector space model
Full-text search in MySQL implements vector space model
delete from t1 where a like "MySQL%";
delete from t1 where a like "MySQL%";
...
...
mysql-test/t/fulltext.test
View file @
3e4bdf60
...
@@ -31,7 +31,7 @@ select *, MATCH(a,b) AGAINST("support collections" IN BOOLEAN MODE) as x from t
...
@@ -31,7 +31,7 @@ select *, MATCH(a,b) AGAINST("support collections" IN BOOLEAN MODE) as x from t
# boolean w/o index:
# boolean w/o index:
select
*
from
t1
where
MATCH
a
AGAINST
(
"sear
ch
"
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
AGAINST
(
"sear
*
"
IN
BOOLEAN
MODE
);
#update/delete with fulltext index
#update/delete with fulltext index
...
...
mysys/queues.c
View file @
3e4bdf60
...
@@ -173,7 +173,11 @@ static int queue_fix_cmp(QUEUE *queue, void **a, void **b)
...
@@ -173,7 +173,11 @@ static int queue_fix_cmp(QUEUE *queue, void **a, void **b)
(
char
*
)
(
*
b
)
+
queue
->
offset_to_key
);
(
char
*
)
(
*
b
)
+
queue
->
offset_to_key
);
}
}
/* Fix heap when every element was changed */
/* Fix heap when every element was changed
actually, it can be done in linear time,
not in n*log(n), but some code (myisam/ft_boolean_search.c)
requires a strict order here, not just a queue property
*/
void
queue_fix
(
QUEUE
*
queue
)
void
queue_fix
(
QUEUE
*
queue
)
{
{
qsort2
(
queue
->
root
+
1
,
queue
->
elements
,
sizeof
(
void
*
),
qsort2
(
queue
->
root
+
1
,
queue
->
elements
,
sizeof
(
void
*
),
...
...
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