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
3671fe1f
Commit
3671fe1f
authored
Jan 18, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
ec0daa74
f003895d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
+14
-9
myisam/ft_boolean_search.c
myisam/ft_boolean_search.c
+6
-5
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+3
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+1
-0
ndb/src/common/util/strdup.c
ndb/src/common/util/strdup.c
+2
-2
sql/log.cc
sql/log.cc
+2
-2
No files found.
myisam/ft_boolean_search.c
View file @
3671fe1f
...
@@ -345,11 +345,12 @@ static void _ftb_init_index_search(FT_INFO *ftb)
...
@@ -345,11 +345,12 @@ static void _ftb_init_index_search(FT_INFO *ftb)
if
(
ftbe
->
flags
&
FTB_FLAG_NO
||
/* 2 */
if
(
ftbe
->
flags
&
FTB_FLAG_NO
||
/* 2 */
ftbe
->
up
->
ythresh
-
ftbe
->
up
->
yweaks
>
1
)
/* 1 */
ftbe
->
up
->
ythresh
-
ftbe
->
up
->
yweaks
>
1
)
/* 1 */
{
{
FTB_EXPR
*
top_ftbe
=
ftbe
->
up
->
up
;
FTB_EXPR
*
top_ftbe
=
ftbe
->
up
;
ftbw
->
docid
[
0
]
=
HA_OFFSET_ERROR
;
ftbw
->
docid
[
0
]
=
HA_OFFSET_ERROR
;
for
(
ftbe
=
ftbw
->
up
;
ftbe
!=
top_ftbe
;
ftbe
=
ftbe
->
up
)
for
(
ftbe
=
(
FTB_EXPR
*
)
ftbw
;
if
(
!
(
ftbe
->
flags
&
FTB_FLAG_NO
))
ftbe
!=
top_ftbe
&&
!
(
ftbe
->
flags
&
FTB_FLAG_NO
);
ftbe
->
yweaks
++
;
ftbe
=
ftbe
->
up
)
ftbe
->
up
->
yweaks
++
;
ftbe
=
0
;
ftbe
=
0
;
break
;
break
;
}
}
...
@@ -363,7 +364,7 @@ static void _ftb_init_index_search(FT_INFO *ftb)
...
@@ -363,7 +364,7 @@ static void _ftb_init_index_search(FT_INFO *ftb)
else
else
reset_tree
(
&
ftb
->
no_dupes
);
reset_tree
(
&
ftb
->
no_dupes
);
}
}
if
(
_ft2_search
(
ftb
,
ftbw
,
1
))
if
(
_ft2_search
(
ftb
,
ftbw
,
1
))
return
;
return
;
}
}
...
...
mysql-test/r/fulltext.result
View file @
3671fe1f
...
@@ -148,6 +148,9 @@ select * from t1 where MATCH a,b AGAINST ('+(support collections) +foobar*' IN B
...
@@ -148,6 +148,9 @@ select * from t1 where MATCH a,b AGAINST ('+(support collections) +foobar*' IN B
a b
a b
select * from t1 where MATCH a,b AGAINST ('+(+(support collections)) +foobar*' IN BOOLEAN MODE);
select * from t1 where MATCH a,b AGAINST ('+(+(support collections)) +foobar*' IN BOOLEAN MODE);
a b
a b
select * from t1 where MATCH a,b AGAINST ('+collections -supp* -foobar*' IN BOOLEAN MODE);
a b
Full-text indexes are called collections
select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
a b
a b
select * from t1 where MATCH a,b AGAINST('"space model' IN BOOLEAN MODE);
select * from t1 where MATCH a,b AGAINST('"space model' IN BOOLEAN MODE);
...
...
mysql-test/t/fulltext.test
View file @
3671fe1f
...
@@ -67,6 +67,7 @@ select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
...
@@ -67,6 +67,7 @@ select * from t1 where MATCH a,b AGAINST ('"xt indexes"' IN BOOLEAN MODE);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'+(support collections) +foobar*'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'+(support collections) +foobar*'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'+(+(support collections)) +foobar*'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'+(+(support collections)) +foobar*'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'+collections -supp* -foobar*'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'"xt indexes"'
IN
BOOLEAN
MODE
);
select
*
from
t1
where
MATCH
a
,
b
AGAINST
(
'"xt indexes"'
IN
BOOLEAN
MODE
);
# bug#2708, bug#3870 crash
# bug#2708, bug#3870 crash
...
...
ndb/src/common/util/strdup.c
View file @
3671fe1f
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
char
*
char
*
strdup
(
const
char
*
s
){
strdup
(
const
char
*
s
){
void
*
p2
;
void
*
p2
;
p2
=
malloc
(
strlen
(
s
)
+
1
);
if
((
p2
=
malloc
(
strlen
(
s
)
+
1
)))
strcpy
(
p2
,
s
);
strcpy
(
p2
,
s
);
return
p2
;
return
p2
;
}
}
#endif
#endif
sql/log.cc
View file @
3671fe1f
...
@@ -2247,9 +2247,9 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff,
...
@@ -2247,9 +2247,9 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff,
DBUG_ENTER
(
"print_buffer_to_nt_eventlog"
);
DBUG_ENTER
(
"print_buffer_to_nt_eventlog"
);
buffptr
=
buff
;
buffptr
=
buff
;
if
(
length
>
(
uint
)(
buffLen
-
4
))
if
(
length
>
(
uint
)(
buffLen
-
5
))
{
{
char
*
newBuff
=
new
char
[
length
+
4
];
char
*
newBuff
=
new
char
[
length
+
5
];
strcpy
(
newBuff
,
buff
);
strcpy
(
newBuff
,
buff
);
buffptr
=
newBuff
;
buffptr
=
newBuff
;
}
}
...
...
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