You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two routines MakeDecimalForCsvNegatives(n) and MakeDecimalForCsvNoNegatives(n) both return a NULL string if the value of 'n' equals zero.
This caused issues in a bulk load when the program tried to load the null data into a field that was set to no nulls.
Fixed it by changing the freturn string to "0" from "" in the two routines in my build.
function MakeDecimalForCsvNegatives, a
required in aNumber, n
external function
IsDecimalNegatives, boolean
endexternal
proc
.ifdef DBLV11
if (%IsDecimalNegatives(aNumber))
freturn %string(aNumber)
.else
if (aNumber && %IsDecimalNegatives(aNumber))
freturn %string(aNumber)
.endc
freturn "0" ;; fixed this line
endfunction
function MakeDecimalForCsvNoNegatives, a
required in aNumber, n
external function
IsDecimalNoNegatives, boolean
endexternal
proc
.ifdef DBLV11
if (%IsDecimalNoNegatives(aNumber))
freturn %string(aNumber)
.else
if (aNumber && %IsDecimalNoNegatives(aNumber))
freturn %string(aNumber)
.endc
freturn "0" ;;fixed this line
endfunction
The text was updated successfully, but these errors were encountered:
The two routines MakeDecimalForCsvNegatives(n) and MakeDecimalForCsvNoNegatives(n) both return a NULL string if the value of 'n' equals zero.
This caused issues in a bulk load when the program tried to load the null data into a field that was set to no nulls.
Fixed it by changing the freturn string to "0" from "" in the two routines in my build.
The text was updated successfully, but these errors were encountered: