[MDEV-12414] ENUM column type is not supported by CONNECT engine with tabtype=MySQL Created: 2017-03-31 Updated: 2020-08-25 Resolved: 2017-03-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.1.23 |
| Fix Version/s: | 10.2.5, 10.3.0, 10.1.25, 10.0.31 |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I know that it's a documented limitation (https://mariadb.com/kb/en/mariadb/connect-table-types-mysql-table-type-accessing-mysqlmariadb-tables/#data-types), but I was informed that recent CONNECT code should support ENUM columns. It does not seem to be the case based on my test:
CONNECT says the following about its version in the log:
MariaDB was built from the following GitHub version:
Please, either confirm that ENUM is still not supported, or fix whatever problem prevents from having the latest CONNECT code in the main tree. |
| Comments |
| Comment by Olivier Bertrand [ 2017-03-31 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This was pushed onto the CONNECT repository. I hope it will be included in all the next MariaDB versions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2017-06-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sorry, but this still fails in 10.1.24: [openxs@fc23 maria10.1]$ bin/mysql --socket=/tmp/mariadb.sock -uroot Welcome to the MariaDB monitor. Commands end with ; or \g. Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> show tables; Database changed
----------------
---------------- MariaDB [test]> exit Welcome to the MariaDB monitor. Commands end with ; or \g. Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [test]> create table tenu(id int primary key, c1 enum('a','b')); MariaDB [test]> insert into tenu values(1,'a'), (2,'b'); MariaDB [test]> select * from tenu;
---
--- MariaDB [test]> install soname 'ha_connect.so'; MariaDB [test]> create table connect_enu engine=connect table_type=mysql dbname=test tabname=tenu option_list='user=root,host=127.0.0.1,port=3306'; I wonder why the bug is closed? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2017-07-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This seems to be fixed in recent code (I assume 10.1.25 also):
The following CONNECT version is used based on the error log: 2017-07-05 10:18:21 139793498352960 [Note] CONNECT: Version 1.06.0001 April 17, 2017 |