Don't trunc string but raise an exception (better data integrity)

bzr revid: ced-21f39c8d93c3b774075bf7ca082b0af07211e335
This commit is contained in:
ced 2007-10-30 09:06:54 +00:00
parent 4517aea8f0
commit 79d1ea2c86
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class char(_column):
u_symb = unicode(symb)
if len(u_symb) > self.size:
return u_symb[:self.size-3].encode('utf8') + '...'
raise Exception, '%s size greater than %d' % (self.string, self.size)
else:
return u_symb.encode('utf8')