<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged varchar</title>
<link>https://www.question2answer.org/qa/tag/varchar</link>
<description>Powered by Question2Answer</description>
<item>
<title>change varchar to longtext</title>
<link>https://www.question2answer.org/qa/43485/change-varchar-to-longtext</link>
<description>hi&lt;br /&gt;
&lt;br /&gt;
first of all thank you for your awesome Q2A system and sorry for my weak english writing skill(i'm persian)&lt;br /&gt;
&lt;br /&gt;
i want to change 8000 content character limitation.i try that by change db/maxima.php definitions.but not work(just remove &amp;quot;8000 character limitation error message&amp;quot; and cut the content automatically)&lt;br /&gt;
&lt;br /&gt;
next i try to change database qa_post:content but if i increase 8000 to more than 20000 it change automatic VARCHAR to &amp;quot;mediumtext&amp;quot; type.&lt;br /&gt;
&lt;br /&gt;
i need more than 20000.how can get that?&lt;br /&gt;
&lt;br /&gt;
i change Varchar to Longtext and content send complete.is it problem with change varchar to longtext?(in present and future(if i want install plugins and update core and etc)&lt;br /&gt;
&lt;br /&gt;
what is diffrence between varchar and text(exactly longtext)?&lt;br /&gt;
&lt;br /&gt;
thank you VERY much</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43485/change-varchar-to-longtext</guid>
<pubDate>Mon, 02 Feb 2015 01:21:07 +0000</pubDate>
</item>
<item>
<title>Changing qa_posts&gt;content from VARCHAR to TEXT to write more text - consequences?</title>
<link>https://www.question2answer.org/qa/29792/changing-qa_posts-content-from-varchar-write-consequences</link>
<description>

&lt;p&gt;
	I am in a situation where the 8000 characters allowed are not sufficient for posting content. I tried to increase the 8000 to 20000 but get the mysql error notice:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	When I change VARCHAR to TEXT, what are the consequences? Will q2a get any problems with that?&lt;/p&gt;


&lt;p&gt;
	---&lt;/p&gt;


&lt;p&gt;
	EDIT: I changed 'content' from VARCHAR to MEDIUMTEXT now and it seems to work.&lt;/p&gt;


&lt;p&gt;
	With MediumText you get: max. ~16MB – 16,777,215 character – around &lt;strong&gt;4,194,303 utf-chars&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	If you need to do the same, after the DB changes, you need to edit file &lt;strong&gt;qa-db-maxima.php: &lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;@define('QA_DB_MAX_CONTENT_LENGTH', 500000); // before 8000 (varchar)&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29792/changing-qa_posts-content-from-varchar-write-consequences</guid>
<pubDate>Tue, 10 Dec 2013 02:32:55 +0000</pubDate>
</item>
</channel>
</rss>