The pitcher will have a "no decision" (neither a win nor a loss).
In the case where the pitcher leaves for a pinch hitter, and the team rallies to take the lead and hold it for the remainder of the game, that pitcher would be the winning pitcher, provided he pitched the required 5 innings.
Chat with our AI personalities