Skip to content

Commit a349a65

Browse files
committed
#2839 sp_DatabaseRestore smallint
Change smallint to int to prevent arithmetic overflows. Closes #2839.
1 parent 7cd5251 commit a349a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp_DatabaseRestore.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ DECLARE @cmd NVARCHAR(4000) = N'', --Holds xp_cmdshell command
225225
@LogRecoveryOption AS NVARCHAR(MAX) = N'', --Holds the option to cause logs to be restored in standby mode or with no recovery
226226
@DatabaseLastLSN NUMERIC(25, 0), --redo_start_lsn of the current database
227227
@i TINYINT = 1, --Maintains loop to continue logs
228-
@LogRestoreRanking SMALLINT = 1, --Holds Log iteration # when multiple paths & backup files are being stripped
228+
@LogRestoreRanking INT = 1, --Holds Log iteration # when multiple paths & backup files are being stripped
229229
@LogFirstLSN NUMERIC(25, 0), --Holds first LSN in log backup headers
230230
@LogLastLSN NUMERIC(25, 0), --Holds last LSN in log backup headers
231231
@LogLastNameInMsdbAS NVARCHAR(MAX) = N'', -- Holds last TRN file name already restored

0 commit comments

Comments
 (0)