Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change DATEDIFF function datepart #5492

Merged
merged 1 commit into from
May 8, 2019

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