TULSA, Okla. -- Zane Gurwitz broke a tie with a two-run single in the eighth inning and fifth-seeded Texas won the Big 12 championship on Sunday, beating second-seeded Oklahoma State 6-3.

The Longhorns (30-25) earned an automatic NCAA tournament berth, winning the conference tournament for the record fifth time and first since 2009.

Oklahoma State (37-18) lost in the title game for the second consecutive year.

Kyle Johnston, Parker French and Kirby Bellow combined on a six-hitter. French (5-3) pitched an inning to pick up his second win of the tournament.

Remey Reed (3-2) was charged with the loss, allowed two unearned runs.

The Longhorns were helped by three errors as they erased a 2-1 deficit with five runs in the eighth. Tres Barrera's one-out squeeze bunt drove in the tying run and he reached first on pitcher Carson LaRue's error. After Collin Shaw drew a walk from Tyler Nurdin to load the bases, Gurwitz slapped the go-ahead hit down the right-field line.

Brooks Marlow's squeeze bunt drove in Shaw from third. Pinch-hitter Patrick Mathis then lined a RBI single to make it 6-2.