Skip to content

Added Mysql text datatype support as a string#383

Open
Alvalunasan wants to merge 1 commit intodatajoint:masterfrom
Alvalunasan:text_datatype_support
Open

Added Mysql text datatype support as a string#383
Alvalunasan wants to merge 1 commit intodatajoint:masterfrom
Alvalunasan:text_datatype_support

Conversation

@Alvalunasan
Copy link
Contributor

A quick fix just to add text datatype as support

When this is not added I get the following error:

bdatatest_schema = dj.Schema(dj.conn, 'bdatatest', 'bdatatest')
Error using dj.internal.Declare.matchType (line 430)
UnsupportedType: Attribute type 'text' is not a valid type.

@dimitri-yatsenko
Copy link
Member

Thanks, @Alvalunasan. What is the reason for adding the text datatype? Are there cases where varchar or longblob are insufficient? We need to be careful with adding support for new types because their distinct usecases must be well explained and documented and support added across both languages: MATLAB and Python.

@Alvalunasan
Copy link
Contributor Author

Hi @dimitri-yatsenko thanks for the response.
Basically, we need to fetch with DJ an already existing DB that was created with text (and mediumtext) fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments