CHICAGO — Scott Feldman retired 18 straight on his way to his first career complete game and the Chicago Cubs took advantage of former No. 1 pick Andrew Cashner’s wildness in a 6-2 win over the San Diego Padres on Wednesday night.

Feldman (2-3) earned his second straight win, allowing two runs and three hits while walking one. After Chase Headley singled with two outs in the first, Feldman retired the next 18 batters.

Feldman had 12 strikeouts to set a new career high. He also had an RBI double in the second to give the Cubs a 2-0 lead.

Starlin Castro was 2 for 4 with two runs scored for the Cubs.

Cashner, making his first start against the team that made him its No. 1 pick in 2008, lasted four innings and gave up five runs, four earned.