diff options
author | monty@hundin.mysql.fi <> | 2001-09-02 20:42:07 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-09-02 20:42:07 +0300 |
commit | 7f8f1bd9797e64c700112bf658cea3fa87e129ad (patch) | |
tree | 5347a76b780d3917bc986c866ced057e7783b9d6 /myisam/mi_create.c | |
parent | 759cf54a9e70013d92fe18a84b3e4c56244de7da (diff) | |
download | mariadb-git-7f8f1bd9797e64c700112bf658cea3fa87e129ad.tar.gz |
Fix to not running mysqld as root by default
Diffstat (limited to 'myisam/mi_create.c')
-rw-r--r-- | myisam/mi_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_create.c b/myisam/mi_create.c index 6de13f8f84a..7abf274d621 100644 --- a/myisam/mi_create.c +++ b/myisam/mi_create.c @@ -63,7 +63,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, ci=&tmp_create_info; } - if (keys + uniques > MI_MAX_KEY) + if (keys + uniques > MI_MAX_KEY || columns == 0) { DBUG_RETURN(my_errno=HA_WRONG_CREATE_OPTION); } |