[MDEV-6117] CONNECT: misleading warning Created: 2014-04-16  Updated: 2014-04-22  Resolved: 2014-04-22

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.10
Fix Version/s: 10.0.11

Type: Bug Priority: Trivial
Reporter: Federico Razzoli Assignee: Olivier Bertrand
Resolution: Fixed Votes: 0
Labels: connect-engine


 Description   

MariaDB [test]> CREATE TABLE t (a INT) ENGINE=CONNECT TABLE_TYPE=csv;
Query OK, 0 rows affected, 1 warning (0.18 sec)
 
Warning (Code 1105): No file name. Table will use t.csv
MariaDB [test]> INSERT INTO t VALUES (1);
Query OK, 1 row affected (0.00 sec)
 
MariaDB [test]> ALTER TABLE t TABLE_TYPE=fmt;
ERROR 1296 (HY000): Got error 174 'Writing FMT files is not implemented yet' from CONNECT
Warning (Code 1105): Congratulation, you just created a read-only void table!
Error (Code 1296): Got error 174 'Writing FMT files is not implemented yet' from CONNECT
MariaDB [test]> SHOW CREATE TABLE t;
+-------+--------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                           |
+-------+--------------------------------------------------------------------------------------------------------+
| t     | CREATE TABLE `t` (
  `a` int(11) DEFAULT NULL
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=csv |
+-------+--------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

The error is ok. But the warning 'Congratulation, you just created a read-only void table!' is misleading in this case. Since the table is not empty, one could think a disaster occurred.



 Comments   
Comment by Olivier Bertrand [ 2014-04-22 ]

This warning is suppressed when altering tables.

Generated at Thu Feb 08 07:09:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.