summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-11-22 19:18:35 +0100
committerunknown <serg@serg.mylan>2004-11-22 19:18:35 +0100
commit158d655cc06baf3768cf94c3ce182ec57012ce37 (patch)
tree0cb5051e0236c68cb0f895a62f1cee76e459caa6 /myisam
parent0d37be029187de04485f5060b0bdd988a640b21b (diff)
downloadmariadb-git-158d655cc06baf3768cf94c3ce182ec57012ce37.tar.gz
"Table file %s was created in MySQL 4.1+" is an error, not a warning
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_open.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c
index 944a8af01e9..339ce2de291 100644
--- a/myisam/mi_open.c
+++ b/myisam/mi_open.c
@@ -188,7 +188,11 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
share->state_diff_length=len-MI_STATE_INFO_SIZE;
if (share->state.header.fulltext_keys)
+ {
fprintf(stderr, "Warning: table file %s was created in MySQL 4.1+, use REPAIR TABLE ... USE_FRM to recreate it as a valid MySQL 4.0 table\n", name_buff);
+ my_errno=HA_ERR_UNSUPPORTED;
+ goto err;
+ }
mi_state_info_read(disk_cache, &share->state);
len= mi_uint2korr(share->state.header.base_info_length);