Menu

#116 using setMaxLength() for fixed-length column causes error

2.0.9
closed
None
1
2015-01-31
2015-01-30
No

DataType#getMaxSize() returns 0 for fixed-length fields, so if we use the setMaxLength() method of ColumnBuilder when creating a fixed-length field we get

java.lang.IllegalArgumentException: invalid fixed length size

because the length we've assigned (0) is smaller than the getFixedSize() (>0) for that DataType.

ref:

SourceForge thread

Stack Overflow question

Discussion

  • James Ahlborn

    James Ahlborn - 2015-01-31
    • status: open --> closed
    • assigned_to: James Ahlborn
    • Group: Unassigned --> 2.0.9
     
  • James Ahlborn

    James Ahlborn - 2015-01-31

    Fixed in trunk, will be in the 2.0.9 release.

     

Log in to post a comment.

MongoDB Logo MongoDB