The Giants avoided getting swept by the Marlins with a 6-3 win in 16 innings Thursday, but they couldn't avoid the injury bug bringing them down again. 

Evan Longoria fractured his left hand in the fourth inning, Bruce Bochy announced to reporters after the win. Longoria fractured the fifth metacarpal.

"It's a downer with Longoria," Bochy said on the injury. "That's a tough break for us. We're just having a hard time keeping everybody out there... great win, but tough loss."

Longoria was hit by a pitch in fourth inning on a fastball from Marlins starting pitcher Dan Straily. He stayed in the game briefly before being replaced at third base by Alen Hanson. It was clear right away that Longoria's hand was significantly swelling from the hit by pitch.

The Giants will get another opinion on Longoria's injury once they return home from Miami. 

Longoria went hitless in his one at-bat Thursday. In 67 games played, Longoria is hitting .246 with 10 home runs in his first season with the Giants. 

San Francisco acquired the three-time All-Star in an offseason trade where they sent Denard Span, Christian Arroyo, Matt Krook, and Stephen Woods to Tampa Bay. Longoria is signed through 2022 as part of a 15-year, $145.5 million contract he signed with the Rays. He also has a team option for 2023.