|
rob@xxxxxxxxx wrote: > > Good question. Does the MOVE leave the two binary bytes at the beginning > that say how long the varying field is? And, since it's probably 8 > characters or less it starts out the field with x'0008...'. Thus the sql > goes bonkers with a x'00' in the first position. > > Move, what a primitive statement. > MOVE isn't quite that primitive. It understands the two bytes at the beginning and uses that information to determine the current length of the verying field. If you MOVE from a varying field with a length of zero, nothing will be moved. If you MOVE to a varying field with a length of zero, nothing will be moved either, since MOVE doesn't change the length of a varying result field.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.