summaryrefslogtreecommitdiff
path: root/sql/ha_blackhole.cc
diff options
context:
space:
mode:
authorgkodinov/kgeorge@macbook.gmz <>2007-02-14 18:35:59 +0200
committergkodinov/kgeorge@macbook.gmz <>2007-02-14 18:35:59 +0200
commit664f24d5c36301e98e82e626ead768bdd4b0d13a (patch)
treeb20a74678d8104da9ad074daba7c48210c3dc260 /sql/ha_blackhole.cc
parentc84ee7079ce6918123eebb1acd4b3a57b25d123e (diff)
downloadmariadb-git-664f24d5c36301e98e82e626ead768bdd4b0d13a.tar.gz
Bug#19717: The blackhole engine is returning an OK flag in
index_read(), whereas it must return HA_ERR_END_OF_FILE instead (as there are by definition no rows in a table of that engine.
Diffstat (limited to 'sql/ha_blackhole.cc')
-rw-r--r--sql/ha_blackhole.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_blackhole.cc b/sql/ha_blackhole.cc
index 61a8658be53..3f4285ec595 100644
--- a/sql/ha_blackhole.cc
+++ b/sql/ha_blackhole.cc
@@ -180,7 +180,7 @@ int ha_blackhole::index_read(byte * buf, const byte * key,
uint key_len, enum ha_rkey_function find_flag)
{
DBUG_ENTER("ha_blackhole::index_read");
- DBUG_RETURN(0);
+ DBUG_RETURN(HA_ERR_END_OF_FILE);
}