[MDEV-4880] Attempt to create a table without columns produces ER_ILLEGAL_HA instead of ER_TABLE_MUST_HAVE_COLUMNS Created: 2013-08-09  Updated: 2013-11-10  Resolved: 2013-11-10

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.3
Fix Version/s: 10.0.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

Starting from 10.0.2, an attempt to create a table with some more or less traditional engine and without columns produces ER_ILLEGAL_HA ("engine doesn't have this option") instead of ER_TABLE_MUST_HAVE_COLUMNS ("table must have at least 1 column"), as it did before.

MariaDB [test]> create table t1 ;
ERROR 1031 (HY000): Storage engine InnoDB of the table `test`.`t1` doesn't have this option

I suppose it has something to do with table discovery, but the older message seemed to be more helpful, it would be good to preserve it when appropriate, if possible.


Generated at Thu Feb 08 06:59:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.