Skip to content

Commit

Permalink
fix: use bigint for backupsize in sqlserver (#11448)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Jul 7, 2022
1 parent 9744c3a commit 6aad0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/sqlserver/sqlserverqueries.go
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ WITH MostRecentBackups AS
),
BackupsWithSize AS
(
SELECT mrb.*, CAST((SELECT TOP 1 b.backup_size FROM msdb.dbo.backupset b WHERE [Database] = b.database_name AND LastBackupTime = b.backup_finish_date) AS int) AS [backup_size]
SELECT mrb.*, CAST((SELECT TOP 1 b.backup_size FROM msdb.dbo.backupset b WHERE [Database] = b.database_name AND LastBackupTime = b.backup_finish_date) AS bigint) AS [backup_size]
FROM MostRecentBackups mrb
)
Expand Down

0 comments on commit 6aad0a6

Please sign in to comment.