[MDEV-7488] TEXT type not supported by connect Created: 2015-01-22 Updated: 2015-02-06 Resolved: 2015-01-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.0.15 |
| Fix Version/s: | 10.0.16 |
| Type: | Bug | Priority: | Major |
| Reporter: | Takuya Aoki (Inactive) | Assignee: | Olivier Bertrand |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS release 6.5 (X86_64) |
||
| Attachments: |
|
| Description |
|
Looking at below, in the Connection Engine Limitations part it is said that "Note: TEXT is allowed". I found that a CONNECT table can not be created to a remote MariaDB table with TEXT type. Error (Code 1105): Column memo unsupported type text server1
server2
I made a test case, it can be used with the below command. server1
server2
|
| Comments |
| Comment by Olivier Bertrand [ 2015-01-23 ] | |||||||||||||||
|
Indeed, the documentation on CONNECT data types was not updated and is incomplete. Look at: If the value of connect_type_conv is: NO No conversion. TYPE_ERROR is returned causing a “not supported” message. Note: connect_type_conv and connect_conv_size are global variables that are normally read only except when using a debug compiled server. The connect_type_conv defaults to NO explaining your error. Therefore setting the connect_type_conv global variable to YES and the connect_conv_size to whatever is needed (it defaults to 65500) should provide the required conversion. | |||||||||||||||
| Comment by Takuya Aoki (Inactive) [ 2015-01-27 ] | |||||||||||||||
|
In build 10.0.16 build-7290, connect_type_conv is a read only variable.
| |||||||||||||||
| Comment by Olivier Bertrand [ 2015-01-27 ] | |||||||||||||||
|
To change a global variable, it must be done in the my.cnf file or as a parameter when starting mysqld. | |||||||||||||||
| Comment by Takuya Aoki (Inactive) [ 2015-01-27 ] | |||||||||||||||
|
I wrote down the below in my.cnf file (/etc/my.cnf.d/connect.cnf) but it was not reflected.
I also tried specifying it as a parameter but it does not work.
| |||||||||||||||
| Comment by Takuya Aoki (Inactive) [ 2015-02-05 ] | |||||||||||||||
|
This bug needs to be reopened if there is no way of changing connect_type_conv to YES (It is a read only variable in 10.0.16). | |||||||||||||||
| Comment by Olivier Bertrand [ 2015-02-05 ] | |||||||||||||||
|
The problem with cnf files is that it is extremely difficult to know where is the one effectively used, especially on Windows where I was unable to see where it is! Also, you must enter the specification in the right section, here the [mysqld] section I guess. Concerning specifying it as a parameter, it is not to be done in the mysql command. It must be done in the mysqld command when starting the server. I did it and it works. Now an open question is: should connect_type_conv be a global parameter (read only to avoid to act on simultaneously connected users) or a session parameter? I am not really decided on that and if you think it should be a session parameter I will make it session. As a matter of fact, it seems reasonable to me. | |||||||||||||||
| Comment by Takuya Aoki (Inactive) [ 2015-02-06 ] | |||||||||||||||
|
As you say, it worked as a mysqld option.
my.cnf file also worked this time setting it under the [mariadb] section.
I think it's better for CONNECT System Variables to be session dependent, since it works like a table option. | |||||||||||||||
| Comment by Olivier Bertrand [ 2015-02-06 ] | |||||||||||||||
|
Ok, connect_type_conv and connect_conv_size will be session variables in the next release. |