summaryrefslogtreecommitdiff
path: root/sql/ha_blackhole.cc
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@macbook.gmz>2007-02-14 18:35:59 +0200
committerunknown <gkodinov/kgeorge@macbook.gmz>2007-02-14 18:35:59 +0200
commit6c8b5256c61653d315de5d7f91f2bfd1f2503c54 (patch)
treeb20a74678d8104da9ad074daba7c48210c3dc260 /sql/ha_blackhole.cc
parentc039eed82cb21d75965fd9b2e936396e0282e0cb (diff)
downloadmariadb-git-6c8b5256c61653d315de5d7f91f2bfd1f2503c54.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. mysql-test/r/blackhole.result: Bug#19717: test case mysql-test/t/blackhole.test: Bug#19717: test case sql/ha_blackhole.cc: Bug#19717: return no rows instead of success.
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);
}