Majority
Headnote
1. Pleading—Demubbeb to Complaint.Where a demurrer to a complaint is made by one of several parties defendant upon the grounds that the complaint does not state facts sufficient to constitute a.cause of action, or that causes of action are improperly united, the sufficiency of the complaint is tó be tested as to the party demurring; and, however insufficient it may be as to other parties, if it states a cause of action as against the demurrant, and if, as to him, the causes of action are not improperly united, then his demurrer must be overruled. However defective the complaint in this case may be as a complaint for the foreclosure of a mechanic’s lien, it seems to me that it states a cause of action against Reid Sr Co., against whom a personal judgment is demanded, and against whose property no lien is sought to be established.
Code Civ. Proc. § 3412, provides that:
“If the lienor shall fail, for any reason, to establish a valid lien in an action under the provisions of this title, he may recover judgment therein for such sums as are due him, or which he might recover in an action on a contract, against any party to the action.”
And it seems to me that if the complaint sets forth the same facts that would, upon a trial, entitle him to recover a judgment “against any party to the action,” where he had failed “to establish a valid lien,” such complaint is, as to that party, sufficient, although it fails to set forth sufficient facts to enable the plaintiff “to establish a valid" lien.”
The causes of action united in this complaint are both upon contract, and both for work, labor, and services; the first of which, the complaint alleges, the defendants Robert H. Reid & Co. agreed to pay, and the second of which, it is alleged, was performed “under a contract with Robert H. Reid & Co.,” these are causes of action that can be united in a single complaint. The demurrer must therefore be overruled,
Demurrer overruled, with costs, with leave to defendant to plead' over within 20 days upon payment of costs.