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
commit329614083fb6388df09751457c932fd127d75324 (patch)
treead8c692a0ce54fbfdaf87579463668ae92d4bdd9 /sql/examples
parent27c02a3b85e5ed2a5ec0c367a9606b214814c4ec (diff)
downloadmariadb-git-329614083fb6388df09751457c932fd127d75324.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 */