Prohibition. Has the superior court jurisdiction to adjudge a defendant in an action guilty of contempt for his refusal to answer interrogatories in a proceeding regularly instituted- by the plaintiff to take his deposition under the provisions of section 2021 of the Code of Civil Procedure, after the sustaining of a. general demurrer to the complaint, with leave to file an amended complaint, the time within which to file the same not having *730 expired and prior to the exercise by plaintiff of such right?
As appears from the petition, a general demurrer was sustained to the complaint with leave to amend, after which and before plaintiff had exercised her right under an order of court granting her leave to file an amended complaint, the proceedings for the taking of the deposition of defendant were instituted. Defendant appeared, was duly sworn, and, upon the advice of his attorney, refused to answer certain questions, propounded to him. Whereupon he was cited to appear before the court and show cause why he should not be adjudged guilty of contempt for such refusal. Upon the hearing of the matter it was ordered that he appear before the notary and give answers to the questions so propounded; otherwise the court would adjudge him guilty of contempt and punish him therefor.
Moreover, the ruling of the court in sustaining the general demurrer to the complaint might on an appeal by plaintiff be reversed, thus bringing the case within the facts considered in the case last cited, upholding the right to have a deposition taken for use in a possible new trial granted on an appeal from an order denying a motion therefor.
To sustain petitioner’s contention would not only nullify the plain provisions of section 2021, but destroy the right given by statute for the perpetuation of testimony, as in neither case could a witness be required to testify against his will.
The alternative writ heretofore granted is discharged and the proceeding dismissed.
Conrey, P. J., and James, J., concurred.
