From bef2d5278d741988c01bfbae53ed4cb1b21e5d44 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 2 Apr 2011 06:00:58 +0000 Subject: [PATCH] Support long table comments on newer servers. http://www.heidisql.com/forum.php?t=8105 --- source/table_editor.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/table_editor.pas b/source/table_editor.pas index f94f906c..47179958 100644 --- a/source/table_editor.pas +++ b/source/table_editor.pas @@ -266,6 +266,10 @@ begin tabALTERcode.TabVisible := DBObject.Name <> ''; // Clear value editors memoComment.Text := ''; + if Obj.Connection.ServerVersionInt < 50503 then + memoComment.MaxLength := 60 + else + memoComment.MaxLength := 2048; editAutoInc.Text := ''; editAvgRowLen.Text := ''; editMaxRows.Text := '';