summaryrefslogtreecommitdiff
path: root/sql/ha_myisam.cc
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2000-11-04 15:48:06 +0100
committerserg@serg.mysql.com <>2000-11-04 15:48:06 +0100
commitf39734eb07cd0dec06d19bc1d483b3a5e676f3ac (patch)
treed59c95d63a178310fb32651511ae825b9e9a8fb3 /sql/ha_myisam.cc
parent5d4b91e8cff27d7f933c7c26f9d8e2c0046b4a57 (diff)
downloadmariadb-git-f39734eb07cd0dec06d19bc1d483b3a5e676f3ac.tar.gz
fixed bug with FULLTEXT and ORDER BY
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r--sql/ha_myisam.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc
index 76433a8eae5..630a672d346 100644
--- a/sql/ha_myisam.cc
+++ b/sql/ha_myisam.cc
@@ -1088,7 +1088,8 @@ int ha_myisam::ft_read(byte * buf)
thread_safe_increment(ha_read_next_count,&LOCK_status); // why ?
- error=ft_read_next((FT_DOCLIST *) ft_handler,(char*) buf);
+ if (error=ft_read_next((FT_DOCLIST *) ft_handler,(char*) buf))
+ ft_handler=NULL; // Magic here ! See Item_func_match::val()
table->status=error ? STATUS_NOT_FOUND: 0;
return error;