Topic on Extension talk:DataTable2

70.44.167.109 (talkcontribs)

I tried to put a very long paragraph of sentences in a data table and it appears to be truncated at 255 characters. Is this a fixed limit? Is there any way to have longer lengths?

70.44.167.109 (talkcontribs)

@RV1971 just wanted to ping you so you see this. Thanks for your hard work on this extension! Please see my question above when you have a moment to reply. Thanks!

RV1971 (talkcontribs)

Indeed this limit is hard-wired in the table definition, see datatable2_data.sql. You can change it by modifying the SQL file before installing the extension. If you have already installed it, you can still modify the table in your database. In case you don't know how to do this, look for ALTER TABLE in the documentation of your underlying database system.

70.44.167.109 (talkcontribs)

@RV1971

That was what I thought. I was about to change the table definition using my hosting provider's phpmyadmin web interface but was concerned that it may lead to other issues. I looked over your code via github and I can't see any reason why it wouldn't work, but just wanted to pick your brain on it before I tried it and broke something. I'm gonna up it to 1023 I think. Thanks for the help!

70.44.167.109 (talkcontribs)

That limit might be worth mentioning in the extension documentation.

RV1971 (talkcontribs)

Good idea. I have just done so, thanks!

Reply to "Maximum length"