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 70
70
<Folder Include =" Reference_Databases" />
71
71
</ItemGroup >
72
72
<ItemGroup >
73
- <Build Include =" Functions\omd.GetConsistencyDateTime.sql" />
74
73
<Build Include =" Functions\omd.GetDependency.sql" />
75
74
<Build Include =" Functions\omd.GetModuleLoadWindowDateTime.sql" />
76
75
<Build Include =" Functions\omd.GetModuleLoadWindowIdentifier.sql" />
145
144
<Build Include =" Stored Procedures\omd.CreateLoadWindow.sql" />
146
145
<Build Include =" Functions\omd.GetModuleAreaByModuleId.sql" />
147
146
<Build Include =" Stored Procedures\omd.InsertIntoEventLog.sql" />
147
+ <Build Include =" Stored Procedures\omd.GetConsistencyDateTime.sql" />
148
148
</ItemGroup >
149
149
<ItemGroup >
150
150
<PostDeploy Include =" Scripts\Script.PostDeployment.sql" />
Original file line number Diff line number Diff line change @@ -316,9 +316,13 @@ BEGIN
316
316
SET @localSqlStatement = ' SELECT @localSourceMaxDateTime=COALESCE(MAX(LOAD_DATETIME),'' 1900-01-01'' )' +
317
317
' FROM '+ @localDataObjectSource+ ' sdo '+
318
318
' 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'' ' +
320
321
' AND LOAD_DATETIME <= '' '+ CONVERT (VARCHAR (100 ),@MeasurementDateTime)+ ' '' '
321
322
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
+
322
326
IF @Debug = ' Y'
323
327
PRINT @localSqlStatement;
324
328
You can’t perform that action at this time.
0 commit comments