16

image Finding Buffer Truncation Points

When building your data model, you may need to use systems that have already been implemented but for which there is limited documentation. Here is a systematic process for testing string buffer lengths to allow you to limit buffer sizes and avoid truncation problems.

Figure T-16 Source test data

image

1.  Create a source-data buffer longer than you suspect the target field is capable of storing.

2.  Create another buffer to retrieve the result into.

3.  Fill your source-data buffer with a pattern of data that is ...

Get Developing Quality Metadata now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.