|
From: Barbara Morris
Joe Pluta wrote:
NOT
... But to be thorough, there is still the issue that large fields will
work with a hardcoded "2". If the field is ever changed to be longerthan
64K, then code that uses "2" will break.
True, but that would be the case no matter how the VARYING > 65535 was
handled.
The programmer who changes the length over the 65535 mark and
gets an immediate syntax checker or compiler diagnostic about VARYING(4)
being required has a better (imo) chance of spotting this problem when
they do their impact analysis. If the compiler silently defaulted to
VARYING(4), the programmer might be less aware of the extra impact
analysis required due to the change in both the length and the prefix
length.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.