summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2006-05-18 17:10:58 +0500
committerunknown <ramil@mysql.com>2006-05-18 17:10:58 +0500
commit5632d02c8de3af3bfcb0395a9b3a7f80120af21a (patch)
treead8c692a0ce54fbfdaf87579463668ae92d4bdd9 /sql/examples
parent0138267b45b8447ec263294302391179bc9c216e (diff)
downloadmariadb-git-5632d02c8de3af3bfcb0395a9b3a7f80120af21a.tar.gz
Fix for bug #15558: truncate doesn't clear table on archive storage engine tables.
mysql-test/r/archive.result: Fix for bug #15558: truncate doesn't clear table on archive storage engine tables. - adjusted result mysql-test/t/archive.test: Fix for bug #15558: truncate doesn't clear table on archive storage engine tables. - adjusted test sql/examples/ha_archive.cc: Fix for bug #15558: truncate doesn't clear table on archive storage engine tables. - return an error as we don't suport delete_all_rows.
Diffstat (limited to 'sql/examples')
-rw-r--r--sql/examples/ha_archive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc
index ee4cad25460..55fc359348f 100644
--- a/sql/examples/ha_archive.cc
+++ b/sql/examples/ha_archive.cc
@@ -1010,6 +1010,6 @@ ha_rows ha_archive::records_in_range(uint inx, key_range *min_key,
int ha_archive::delete_all_rows()
{
DBUG_ENTER("ha_archive::delete_all_rows");
- DBUG_RETURN(0);
+ DBUG_RETURN(HA_ERR_WRONG_COMMAND);
}
#endif /* HAVE_ARCHIVE_DB */