mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
ft-bugfix (UPDATE something -> NULL)
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user