The plaintiff is an Illinois corporation. It began an action against the defendant in the circuit court of the city of St. Louis, in which city the defendant was served with process. At the return term of the writ, he appeared solely for the purpose of moving to dismiss the cause for lack of jurisdiction over the person of the defendant, on the ground that he was a resident of Cooper county and the plaintiff a foreign corporation. It is agreed that the court inadvertently overruled this motion pending the taking of the testimony on it. In view of this the following stipulation was executed by the parties:
“It is hereby agreed between the parties to motion in this cause that the finding of the court overruling the motion to dismiss for want of jurisdiction may be set aside, and the motion replaced upon the law docket and submitted to the court on depositions and evidence; the respective parties to said motion on Friday, June 15, having agreed that the taking up of said motion might go over until June 29, to enable the respective parties to take depositions in support and in opposition thereto, the mover of the motion having served notice to take depositions on Saturday, J une 23, and the plaintiff having served notice to take depositions on Monday June 25, the depositions of June 25 not being taken for the reason that attorney for plaintiff desired to see the depositions taken under notice on June 23 on behalf of the movers, before taking its depositions.”
The court set aside the order overruling the motion to dismiss, pursuant to the stipulation, by the following order:
“By consent of parties hereto, it is ordered by the court that the order made herein on June 27, 1900, overruling the *189motion to dismiss cause for want of jurisdiction, be and tbe same is hereby set aside and vacated and tbe motion reinstated on tbe law docket for bearing.”
Afterwards, the motion was reheard on tbe testimony, wbicb showed conclusively that tbe defendant, at tbe time he was served, resided in Cooper county, Missouri, and not in tbe city of St. Louis. Tbe court, therefore, dismissed the action for want of jurisdiction.
Appellant contends that this judgment was erroneous, because, tbe agreement signed by tbe parties for reinstatement of tbe motion, after it was inadvertently overruled, amounted to a general appearance on tbe part of tbe defendant and gave the court full jurisdiction. It is not denied that the appearance of tbe defendant for tbe sole purpose of raising tbe question of jurisdiction did not, of itself, give jurisdiction over tbe subject-matter. Hill v. Mfg. Co., 4 Mo. App. 688; Huff v. Shepard, 58 Mo. 242; Lincoln v. Hilbus, 36 Mo. 149; Fare v. Gunter, 82 Mo. 522. This being true, it ought not to be held that the agreement made by both parties that tbe premature order of the court overruling tbe motion to dismiss might be set aside and tbe motion reinstated and heard on its merits, amounted to a general appearance by tbe defendant, so that tbe court could not thereafter bear it in any proper sense at all, but was bound to overrule it and retain tbe case. This -would be keeping a promise to tbe ear and breaking it to tbe hope with a vengeance. Tbe very purpose of tbe agreement was to afford tbe court an opportunity to correct an error and to right a wrong. It did both, pursuant to tbe provisions stipulated, wbicb were intended to preserve tbe defendant’s rights, if made in good faith. We can not approve tbe proposition that a party who consented to this action shall be permitted to challenge its propriety. General appearances by continuing or changing tbe venue of cases, bear no resemblance to tbe proceeding here. In asking tbe court-*190to make such orders as those, parties iu effect ask it to exercise jurisdiction, which therefore, they are not permitted to after wards contest.
The judgment is affirmed.
All concur.