*380By the Court.
Daly, J.A recovery could not be had against the defendants jointly. The Code, § 120, authorizes persons severally liable upon the same obligation or instrument, including parties to bills of exchange and promissory notes, to be included in the same action, and by § 167, permits several causes of action to be joined, when they arise out of the same transaction or transactions connected with the same subject of action, and affect all the parties to the action. The defendants were not severally liable upon the same instrument, but upon instruments distinct and different. The one executed by Samuel Dingee was of the payment of rent and the performance of certain covenants to the plaintiff, and that executed by Solomon Dingee was an undertaking guaranteeing the payment of the rent and the performance of the covenant, and the two causes of action could not be united, because each instrument would not affect all the parties to the action, for one defendant could not be charged upon the instrument executed by the other. (Le Roy v. Shaw, 2 Duer, 626; De Ridder v. Schermerhorn, 10 Barb. 638; Hall v. Farmer, 2 Comst. 553.)
Before the Code, a defendant liable upon an original undertaking, as in this case, could not be joined with one severally liable upon a collateral undertaking, and the Code has not changed the law.
The objection could not have been taken by demurrer, as the plaintiff declared generally for use and occupation, and it was not until he had offered these instruments in evidence, to maintain the action, that it was in the power of the defendants to raise the objection. The judgment should be set aside.
Judgment reversed.