Jump to content

Maxium Label Length?


gregsohl

Recommended Posts

Hi Manu!

Why didn't you let those fields as varchar(MAX) ?

I mean... the day before yesterday I was creating a label (which would be a merge of X branches) and I was copying & pasting to the label's comment all the comments from the origin branches in the merge but I discovered that the max char is 1000.

This fields could me varchar(max) right? Or is it a limitation of some databases?

Link to comment
Share on other sites

  • 2 years later...

Ey!!

 

We finally did it. Check the "5.0.44.598" release.

 

Release notes:

 

New
Server: Now, the maximum comment size can be manually
configured.
To configure this parameter, add a new tag in the
server's 'db.conf' file, named 'CommentLimit'
in order to set the value for the maximum
allowed comment length (in characters).
Example:
<DbConfig>
...
<CommentLimit>2000</CommentLimit>
...
</DbConfig>

However, this configuration will require the sysadmin
to manually alter the database tables to match
this new value (see column 'scomment' on table 'object').
The comment length limit is set to 1000 characters
by default.
Even so, importing data (cm sync or cm fast-import) will
only store the first 1000 characters of incoming comments,
no matter which value is contained in the 'CommentLimit' tag.

Warning: Please note that replication operations may fail
if servers have different comment length limits.
Please make sure that all involved servers have their
'CommentLimit' tag set to the same value in the 'db.conf'
file and their repository databases have been modified
accordingly.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...