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
cffbd7e3
Commit
cffbd7e3
authored
Jan 13, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ft-bugfix (UPDATE something -> NULL)
parent
66521277
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
myisam/ft_update.c
myisam/ft_update.c
+2
-1
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+1
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+1
-1
No files found.
myisam/ft_update.c
View file @
cffbd7e3
...
@@ -159,9 +159,10 @@ int _mi_ft_cmp(MI_INFO *info, uint keynr, const byte *rec1, const byte *rec2)
...
@@ -159,9 +159,10 @@ int _mi_ft_cmp(MI_INFO *info, uint keynr, const byte *rec1, const byte *rec2)
while
(
_mi_ft_segiterator
(
&
ftsi1
)
&&
_mi_ft_segiterator
(
&
ftsi2
))
while
(
_mi_ft_segiterator
(
&
ftsi1
)
&&
_mi_ft_segiterator
(
&
ftsi2
))
{
{
if
((
ftsi1
.
pos
!=
ftsi2
.
pos
)
&&
if
((
ftsi1
.
pos
!=
ftsi2
.
pos
)
&&
(
!
ftsi1
.
pos
||
!
ftsi2
.
pos
||
_mi_compare_text
(
default_charset_info
,
_mi_compare_text
(
default_charset_info
,
(
uchar
*
)
ftsi1
.
pos
,
ftsi1
.
len
,
(
uchar
*
)
ftsi1
.
pos
,
ftsi1
.
len
,
(
uchar
*
)
ftsi2
.
pos
,
ftsi2
.
len
,
0
))
(
uchar
*
)
ftsi2
.
pos
,
ftsi2
.
len
,
0
))
)
return
THOSE_TWO_DAMN_KEYS_ARE_REALLY_DIFFERENT
;
return
THOSE_TWO_DAMN_KEYS_ARE_REALLY_DIFFERENT
;
}
}
return
GEE_THEY_ARE_ABSOLUTELY_IDENTICAL
;
return
GEE_THEY_ARE_ABSOLUTELY_IDENTICAL
;
...
...
mysql-test/r/fulltext.result
View file @
cffbd7e3
...
@@ -149,3 +149,4 @@ update t1 set title='this test once revealed a bug' where id=1;
...
@@ -149,3 +149,4 @@ update t1 set title='this test once revealed a bug' where id=1;
select * from t1;
select * from t1;
id title
id title
1 this test once revealed a bug
1 this test once revealed a bug
update t1 set title=NULL where id=1;
mysql-test/t/fulltext.test
View file @
cffbd7e3
...
@@ -128,4 +128,4 @@ update t1 set title='this is A test' where id=1;
...
@@ -128,4 +128,4 @@ update t1 set title='this is A test' where id=1;
check
table
t1
;
check
table
t1
;
update
t1
set
title
=
'this test once revealed a bug'
where
id
=
1
;
update
t1
set
title
=
'this test once revealed a bug'
where
id
=
1
;
select
*
from
t1
;
select
*
from
t1
;
update
t1
set
title
=
NULL
where
id
=
1
;
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