Normally, you'd cut out the leaking section and splice in a new piece. Exactly how you do this depends on the pipe: S40 PVC is different than black poly.

Anyhow . . . membership updated.