Don't trunc string but raise an exception (better data integrity)
bzr revid: ced-21f39c8d93c3b774075bf7ca082b0af07211e335
This commit is contained in:
parent
4517aea8f0
commit
79d1ea2c86
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue