Increasing a size for COLUMN_COMMENT (INFORMATION_SCHEMA.COLUMNS.COLUMN_COMMENT)
Developed In: None/Text — Contributed by: Kapil Bedarkar
Patch to increase the COLUMN_COMMENT size to 1024 bytes.
This is code patch for MySQL (V.5.1.37), it will need to recompile the MySQL Server.
(*Please note - Changes are not tested with standard mysql testing tools, nor verified for backward compatibility, but seems to be working with some normal operations.)
Developed In:
None/Text
diff -cr mysql-5.1.37.edited/sql/sql_show.cc mysql-5.1.37/sql/sql_show.cc
*** mysql-5.1.37.edited/sql/sql_show.cc 2009-07-14 04:42:08.000000000 +0530
--- mysql-5.1.37/sql/sql_show.cc 2009-09-16 18:01:03.000000000 +0530
***************
*** 6180,6186 ****
{"COLUMN_KEY", 3, MYSQL_TYPE_STRING, 0, 0, "Key", OPEN_FRM_ONLY},
{"EXTRA", 27, MYSQL_TYPE_STRING, 0, 0, "Extra", OPEN_FRM_ONLY},
{"PRIVILEGES", 80, MYSQL_TYPE_STRING, 0, 0, "Privileges", OPEN_FRM_ONLY},
! {"COLUMN_COMMENT", 255, MYSQL_TYPE_STRING, 0, 0, "Comment", OPEN_FRM_ONLY},
{0, 0, MYSQL_TYPE_STRING, 0, 0, 0, SKIP_OPEN_TABLE}
};
--- 6180,6186 ----
{"COLUMN_KEY", 3, MYSQL_TYPE_STRING, 0, 0, "Key", OPEN_FRM_ONLY},
{"EXTRA", 27, MYSQL_TYPE_STRING, 0, 0, "Extra", OPEN_FRM_ONLY},
{"PRIVILEGES", 80, MYSQL_TYPE_STRING, 0, 0, "Privileges", OPEN_FRM_ONLY},
! {"COLUMN_COMMENT", 1024, MYSQL_TYPE_STRING, 0, 0, "Comment", OPEN_FRM_ONLY},
{0, 0, MYSQL_TYPE_STRING, 0, 0, 0, SKIP_OPEN_TABLE}
};
diff -cr mysql-5.1.37.edited/sql/unireg.cc mysql-5.1.37/sql/unireg.cc
*** mysql-5.1.37.edited/sql/unireg.cc 2009-07-14 04:42:08.000000000 +0530
--- mysql-5.1.37/sql/unireg.cc 2009-09-16 18:01:29.000000000 +0530
***************
*** 609,615 ****
field->comment.str,
field->comment.str +
field->comment.length,
! 255);
if (tmp_len < field->comment.length)
{
if ((current_thd->variables.sql_mode &
--- 609,615 ----
field->comment.str,
field->comment.str +
field->comment.length,
! 1024);
if (tmp_len < field->comment.length)
{
if ((current_thd->variables.sql_mode &
You must be logged in to tag this tool
Votes
Not yet rated.
You must be logged in to vote.
Watches
0 members are watching this tool
You must be logged in to track this tool.
Provide Feedback