Skip to content

Change DATEDIFF function datepart#5492

Merged
potatoqualitee merged 1 commit intodataplat:developmentfrom
mil0oz:ssisexechistory
May 8, 2019
Merged

Change DATEDIFF function datepart#5492
potatoqualitee merged 1 commit intodataplat:developmentfrom
mil0oz:ssisexechistory

Conversation

@mil0oz
Copy link
Contributor

@mil0oz mil0oz commented May 8, 2019

Currently ElapsedMinutes computed column uses ss as the datepart for the DATEDIFF function in Get-DbaSsisExecutionHistory.ps1. This returns elapsed seconds rather than minutes. Changed to mi tsql datepart to return accurate elapsed minutes.

Type of Change

  • Bug fix (non-breaking change, fixes #)
  • New feature (non-breaking change, adds functionality)
  • Breaking change (effects multiple commands or functionality)
  • Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
  • Nunit test is included
  • Documentation
  • Build system

Change the seconds datepart in Get-DbaSsisExecutionHistory.ps1 to return minutes instead as computed column in query is explicitly called ElapsedMinutes.

Currently ElapsedMinutes computed column uses ss as the datepart for the DATEDIFF function. This does returns elapsed seconds rather than minutes. Changed to mi datepart to return accurate elapsed minutes.
@potatoqualitee
Copy link
Member

awesome! changes make sense. thanks so much 💯

@potatoqualitee potatoqualitee merged commit a4278dd into dataplat:development May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants