CCP 2454     

Art. 2454.  Oath; testimony not used in criminal proceedings

The debtor shall be sworn to tell the truth in the same manner as a witness in a civil action.

No testimony given by a debtor shall be used in any criminal proceeding against him, except for perjury committed at such examination.