fix bug in computing size of field char
fix bug in char column
merge code