1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

BUG#4892 TRUNCATE TABLE returns error 156

Added NDBCLUSTER to table types which does not support generate. 
Added test case for truncate.
This commit is contained in:
magnus@neptunus.(none)
2004-08-04 11:28:36 +02:00
parent 1c65da2cbc
commit d526f3277e
3 changed files with 49 additions and 1 deletions

View File

@ -516,7 +516,8 @@ extern TYPELIB tx_isolation_typelib;
#define ha_rollback(thd) (ha_rollback_trans((thd), &((thd)->transaction.all)))
#define ha_supports_generate(T) (T != DB_TYPE_INNODB && \
T != DB_TYPE_BERKELEY_DB)
T != DB_TYPE_BERKELEY_DB && \
T != DB_TYPE_NDBCLUSTER)
bool ha_caching_allowed(THD* thd, char* table_key,
uint key_length, uint8 cache_type);