GoAdminGroup / go-admin

append possibly assigns to a wrong variable CRT-D0001
Bug risk
Minor
2 months ago2 months old
append result not assigned to the same slice
 539		if connection.Name() == db.DriverMssql {
 540			args = append(whereArgs, (params.PageInt-1)*params.PageSizeInt, params.PageInt*params.PageSizeInt)
 541		} else {
 542			args = append(whereArgs, params.PageSizeInt, (params.PageInt-1)*params.PageSizeInt) 543		}
 544	}
 545
append result not assigned to the same slice
 537		}
 538
 539		if connection.Name() == db.DriverMssql {
 540			args = append(whereArgs, (params.PageInt-1)*params.PageSizeInt, params.PageInt*params.PageSizeInt) 541		} else {
 542			args = append(whereArgs, params.PageSizeInt, (params.PageInt-1)*params.PageSizeInt)
 543		}