File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
020_DIRECT_Framework/Direct_Framework Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 7070 <Folder Include =" Reference_Databases" />
7171 </ItemGroup >
7272 <ItemGroup >
73- <Build Include =" Functions\omd.GetConsistencyDateTime.sql" />
7473 <Build Include =" Functions\omd.GetDependency.sql" />
7574 <Build Include =" Functions\omd.GetModuleLoadWindowDateTime.sql" />
7675 <Build Include =" Functions\omd.GetModuleLoadWindowIdentifier.sql" />
145144 <Build Include =" Stored Procedures\omd.CreateLoadWindow.sql" />
146145 <Build Include =" Functions\omd.GetModuleAreaByModuleId.sql" />
147146 <Build Include =" Stored Procedures\omd.InsertIntoEventLog.sql" />
147+ <Build Include =" Stored Procedures\omd.GetConsistencyDateTime.sql" />
148148 </ItemGroup >
149149 <ItemGroup >
150150 <PostDeploy Include =" Scripts\Script.PostDeployment.sql" />
Original file line number Diff line number Diff line change @@ -316,9 +316,13 @@ BEGIN
316316 SET @localSqlStatement = ' SELECT @localSourceMaxDateTime=COALESCE(MAX(LOAD_DATETIME),'' 1900-01-01'' )' +
317317 ' FROM '+ @localDataObjectSource+ ' sdo '+
318318 ' JOIN omd.MODULE_INSTANCE modinst ON sdo.module_instance_id=modinst.MODULE_INSTANCE_ID '+
319- ' WHERE modinst.EXECUTION_STATUS_CODE='' S'' ' +
319+ ' WHERE 1=1 '+
320+ ' --AND modinst.EXECUTION_STATUS_CODE='' S'' ' +
320321 ' AND LOAD_DATETIME <= '' '+ CONVERT (VARCHAR (100 ),@MeasurementDateTime)+ ' '' '
321322
323+ -- Commented out EXECUTION_STATUS_CODE line because uncommitted rows should also be evaluated to prevent gaps in the load windows.
324+ -- Otherwise, status changes made to 'S' later on may be left out of the selection.
325+
322326 IF @Debug = ' Y'
323327 PRINT @localSqlStatement;
324328
You can’t perform that action at this time.
0 commit comments