diff options
author | gkodinov/kgeorge@macbook.gmz <> | 2007-02-14 18:35:59 +0200 |
---|---|---|
committer | gkodinov/kgeorge@macbook.gmz <> | 2007-02-14 18:35:59 +0200 |
commit | 664f24d5c36301e98e82e626ead768bdd4b0d13a (patch) | |
tree | b20a74678d8104da9ad074daba7c48210c3dc260 /sql/ha_blackhole.cc | |
parent | c84ee7079ce6918123eebb1acd4b3a57b25d123e (diff) | |
download | mariadb-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.cc | 2 |
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); } |