Skip to content
Permalink
Browse files

Merge pull request #86 from lialsoftlab/master

Fixed run-time bug with SegmentedStore when locale with DecimalSeparator other then literal dot in use.
  • Loading branch information...
RobWunderlich committed Jul 30, 2019
2 parents ad9faf9 + 95df088 commit c93037705d268026d96995def549092f06926011
Showing with 6 additions and 6 deletions.
  1. +6 −6 QVC_Source/Qvc_SegmentedStore.qvs
@@ -41,24 +41,24 @@ DROP TABLE _qvctemp._tempDatesTable;

// Set initial value for loop variable to start of interval based on min available date
IF lower('$(_qvctemp.segmentType)') = 'month' THEN
LET _qvctemp.currMinDate = num(monthstart(_qvctemp.minDate));
LET _qvctemp.currMinDate = num(monthstart(_qvctemp.minDate), '0.0', '.', '');
ELSEIF lower('$(_qvctemp.segmentType)') = 'week' THEN
LET _qvctemp.currMinDate = num(weekstart(_qvctemp.minDate));
LET _qvctemp.currMinDate = num(weekstart(_qvctemp.minDate), '0.0', '.', '');
ELSEIF lower('$(_qvctemp.segmentType)') = 'day' THEN
LET _qvctemp.currMinDate = num(daystart(_qvctemp.minDate));
LET _qvctemp.currMinDate = num(daystart(_qvctemp.minDate), '0.0', '.', '');
END IF

// Loop through table a period at a time
DO WHILE _qvctemp.currMinDate <= _qvctemp.maxDate
// Set the max date for this loop iteration
IF lower(_qvctemp.segmentType) = 'month' THEN
LET _qvctemp.currMaxDate = num(monthend(addmonths(_qvctemp.currMinDate, $(_qvctemp.segmentsPerFile))-1));
LET _qvctemp.currMaxDate = num(monthend(addmonths(_qvctemp.currMinDate, $(_qvctemp.segmentsPerFile))-1), '0.0', '.', '');
LET _qvctemp.currFileName = '$(_qvctemp.qvdBaseName)_' & date($(_qvctemp.currMinDate), 'YYYY_MM') & '.qvd';
ELSEIF lower(_qvctemp.segmentType) = 'week' THEN
LET _qvctemp.currMaxDate = num(weekend(_qvctemp.currMinDate + (7 * $(_qvctemp.segmentsPerFile)) - 1));
LET _qvctemp.currMaxDate = num(weekend(_qvctemp.currMinDate + (7 * $(_qvctemp.segmentsPerFile)) - 1), '0.0', '.', '');
LET _qvctemp.currFileName = '$(_qvctemp.qvdBaseName)_' & date($(_qvctemp.currMinDate), 'YYYY_MM_DD') & '.qvd';
ELSEIF lower(_qvctemp.segmentType) = 'day' THEN
LET _qvctemp.currMaxDate = num(dayend(_qvctemp.currMinDate + $(_qvctemp.segmentsPerFile) - 1));
LET _qvctemp.currMaxDate = num(dayend(_qvctemp.currMinDate + $(_qvctemp.segmentsPerFile) - 1), '0.0', '.', '');
LET _qvctemp.currFileName = '$(_qvctemp.qvdBaseName)_' & date($(_qvctemp.currMinDate), 'YYYY_MM_DD') & '.qvd';
END IF

0 comments on commit c930377

Please sign in to comment.
You can’t perform that action at this time.