summaryrefslogtreecommitdiff
path: root/sql/ha_federated.cc
diff options
context:
space:
mode:
authorunknown <patg@radha.local>2005-05-25 02:15:09 +0200
committerunknown <patg@radha.local>2005-05-25 02:15:09 +0200
commitb4508ef33a65e41d0e5e80b5de1a5f543dbe144b (patch)
treed1604065fc58f555c1d5dfda7acbd4f3f7fa74d0 /sql/ha_federated.cc
parent8ddb0ddc5cf302a88372ba877ad843b049de1121 (diff)
downloadmariadb-git-b4508ef33a65e41d0e5e80b5de1a5f543dbe144b.tar.gz
changes to fix joins not working (bug #10848). New tests, as well as table->status being set in index_read_idx
mysql-test/r/federated.result: new join test results mysql-test/t/federated.test: new simple join tests (more to come with subsequent commits) sql/ha_federated.cc: This fixes joins not working. Monty discussed that having to deal with table->status needs to be moved from the handler/storage engine to a higher level BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/ha_federated.cc')
-rw-r--r--sql/ha_federated.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/ha_federated.cc b/sql/ha_federated.cc
index 8cb6dcb7285..eab3e55c4a4 100644
--- a/sql/ha_federated.cc
+++ b/sql/ha_federated.cc
@@ -1526,6 +1526,8 @@ int ha_federated::index_read_idx(byte *buf, uint index, const byte *key,
table->status= STATUS_NOT_FOUND;
DBUG_RETURN(mysql_errno(mysql));
}
+ /* very important - joins will not work without this! */
+ table->status=0;
DBUG_RETURN(rnd_next(buf));
}