Freshman Andrew Summerville threw six shutout innings and the Stanford baseball team did just enough to hold off visiting San Jose State, 4-3, in a nonconference game Tuesday night in Sunken Diamond.
The Cardinal (19-23) returns to Pac-12 play this weekend with a three-game series at Oregon, beginning with Friday night's 6 p.m. contest.
Stanford, which has won five of eight, built a 4-0 lead behind Summerville, with four Cardinal batters with multiple hits.
The Spartans rallied for one in the eighth and two in the ninth to get the tying run on base before junior Gabe Cramer forced a groundout to earn his second save.
Summerville (4-1) worked three 1-2-3 frames as part of his 81-pitch effort. He threw 53 strikes, striking out five hitters without issuing a walk. One runner reached third and one other reached second against the lefty from Seattle, who allowed only three hits in his first career start.
Jonny Locher and Tommy Edman led the offense with two hits and a double apiece, each in the seventh inning.
Stanford scored three times in the seventh, once when Edman laced a two-bagger down the right field line and two more times when Locher used the opposite line one a two-out, two-strike pitch with the bases loaded.
The Cardinal took a 1-0 lead in the first, courtesy of Zach Hoffpauir's RBI ground out.
Tyler Thorne allowed a run in two innings out of the bullpen, before the Spartans got two off of Cramer in the ninth.
Cramer ended the game when he forced Alex deWatteville to tap out to first baseman Alex Dunlap with the tying run on first.
Drew Jackson and Jack Klein were both 2 for 4. Beau Branton snapped his 11-game hitting streak with a 0 for 3 night.