In November, 1955, plaintiff brought a proceeding in unlawful detainer for default of rent in defendant small claims court. On December 6, 1955, the court dismissed the action upon its own motion on the ground that the 1955 amendment to section 117 of the Code of Civil Procedure, upon which its jurisdiction was predicated, was unconstitutional. From a judgment of the superior court that a writ of mandate issue compelling defendant to entertain the proceeding, defendant appeals.
Section 117 of the Code of Civil Procedure gives justice court and municipal court judges jurisdiction to sit as small claims courts in cases for the “recovery of money only where the amount claimed does not exceed one hundred dollars ($100), except that a municipal court judge sitting as a small claims court shall also have jurisdiction in proceedings in unlawful detainer after default in rent for residential property where the term of tenancy is not greater than month to month, and where the whole amount claimed is one hundred dollars ($100) or less” (Italics added.) The unlawful de- *670 tainer provision was added in 1955. The jurisdictional amounts were increased to one hundred fifty dollars in 1957.
The first issue to be decided is whether defendant court can question the constitutionality of the statute. Plaintiff contends that defendant is not a member of a class whose rights are invaded by the statute and invokes the general rule that only such a member may question its constitutionality.
(California State Automobile Ass’n Inter-Insurance Bureau
v.
Downey,
One of the alleged grounds of unconstitutionality of the amendment to section 117 of the Code of Civil Procedure is that it deprives a defendant of due process of law in that he may be deprived of possession of his residence without ever having had a hearing with the right to be represented by counsel, since he has no right to counsel in a small claims court (Code Civ. Proc., § 117g) and a stay of proceedings pending appeal is discretionary with the small claims court even though an appeal bond is filed. (Code Civ. Proc., § 1176.) Plaintiff contends, however, that there is an automatic stay on appeal when a proper undertaking is filed (citing sections 117j, 978, and 979 of the Code of Civil Pro
*671
cedure) and that on appeal the defendant will have a trial de novo in the superior court with the right to be represented by counsel. (Code Civ. Proc., § 976.) Sections 978 and 979, however, which govern appeals from justice courts and from small claims courts, as provided in section 117j, are essentially similar to sections 945 and 946, which govern appeals from superior courts. It has been held in numerous cases that in unlawful detainer actions sections 945 and 946 are subject to section 1176, which provides that a stay of proceedings on appeal is discretionary with the trial judge. The reasoning in those cases also applies to sections 978 and 979.
(Jameson
v.
Chanslor-Canfield Midway Oil Co.,
Under the foregoing statutes a stay of proceedings on a judgment in unlawful detainer by the small claims court is discretionary with that court, and there is no automatic stay of proceedings whether or not an undertaking is filed.
When public necessity demands, there may be action followed by a hearing.
(Financial Indemnity Co.
v.
Superior Court,
The right to a hearing includes the right to appear by counsel.
(Chandler
v.
Fretag,
In
Prudential Ins. Co.
v.
Small Claims Court, supra,
The 1955 amendment to section 117 of the Code of
*674
Civil Procedure is therefore void insofar as it purports to give jurisdiction to small claims courts in unlawful detainer proceedings. The invalidity of this amendment does not invalidate the entire section.
(Speegle
v.
Board of Fire Underwriters,
The judgment is reversed.
Respondent’s petition for a rehearing was denied February 26, 1958.
Notes
The applicable part of section 1174 reads as follows:
“When the proceeding is for unlawful detainer after default in the payment of rent, and the lease or agreement under which the rent is payable has not by its terms expired, and the notice required by Section 1161 has not stated the election of the landlord to declare the forfeiture thereof, the court may . . . order that execution upon the judgment shall not be issued until the expiration of five days after the entry of judgment, within which time the tenant, or any subtenant, or any mortgagee of the term, or any other party interested in its continuance, may pay into the court, for the landlord, the amount found due as rent, with interest thereon, and the amount of the damages found by the jury or the court for the unlawful detainer, and the costs of the pro *672 eeedings, and thereupon the judgment shall be satisfied and the tenant be restored to his estate.
“But if payment as here provided be not made within five days, the judgment may be enforced for its full amount, and for the possession of the premises. In all other cases the judgment may be enforced immediately. ’’
“The provisions of Part 2 of this code, relative to new trials and appeals, except insofar as they are inconsistent with the provisions of this chapter or with rules adopted by the Judicial Council apply to the proceedings mentioned in this chapter.” (Code Civ. Proc., $ 1178.)
