I went to a house today and saw something I hadn't seen before. The homeowner told me what had happened and that it was repaired by a licensed electrician, but the method was one I questioned.

At some point the outlets in the dining room "lost" the grounding conductor and no break could be found. The electrician basically made a neat junction box under the house and ran a copper wire to a cold water pipe and clamped it on, in effect regrounding the circuit.

Yes it works, and no it's not the way I would have fixed the problem. So my question is, have any of you seen this before and is it even close to code?