In this mаndamus proceeding the essential question for determination is whether the trial court could disregard the residence of a party who had been sued by a fictitious name, and whose true name was substituted after a motion to change venue, but before the hearing thereon. We •have concluded that the court below was required to consider the residence of such party in determining the motion for change of venue, and that since the residence of such defendant was established to' be in San Francisco County, the trial court erred in ordering a change of venue to Ventura County. In reaching this conclusion we have -determined that the trial court was also in error in finding that ..plaintiff’s ¡joinder of such party defendant was not made in good faith.-
In the instant action а complaint • for damages for personal *714 injuries was filed on January 11, 1966 1 by plaintiff in San Francisco County naming Ojai Valley Inn, Ojai Hotel Company, Northrop Architectural Systems and 15 Does as defendants. The complaint alleged that plaintiff sustained injuries when she came into contact with certain sliding glass doors while a paying lodger at the Ojai Valley Inn. It was alleged that defendants Ojai Hotel Company and Does One through Eight were the owners and operators of Ojai Valley Inn; that defendants Northrop Architectural Systems and Does Nine through Eleven were the manufacturers, fabricators, distributors and installers of the subject glass doors; and that defendants Does Twelve through Fourteen were the manufacturers, fabricators and distributors of the glass used in said doors. With respect to the charging allegations, thе complaint was framed in two “causes of action,” the first alleging negligence against all of defendants “in designing, manufacturing, constructing, selling, distributing, installing and maintaining” the hotel premises and the subject doors; and the second seeking recovery on a warranty theory against Northrop Architectural Systems and Does Nine through Fourteen.
The subject complaint specifically alleged that Northrop Architectural Systems and Does Nine through Fourteen “have their principal place of business in the City and County of San Francisco” and alleged that the true names and capacities of all defendants were unknown to plaintiff “who therefore sues said defendants by such fictitious names and designations. ’ ’
On March 15, Ojai Hotel Company, a corporation (hereinafter referred to as Ojai), filed a notice of motion for change of venue wherein it alleged that it was the defendant sued as Ojai Valley Inn, Ojai Hotel Company and Does One through Eight. The notice stated that on April 1, or as soon thereafter as the matter could be heard, Ojai would move to transfer the cause to Ventura County. The motion was predicated on the allegation that the alleged injury took place in Ventura County, that Ojai’s principal place of business was in Ventura County, and that none of defendants resided or had their place of business in San Francisco County. A declaration of facts in support of the motion made by the attorney for Ojai was filed in conjunction with the motion. A similar motion, supported by the declaration of its attorney, was filed on March 21 by Northrop Architectural Systems, a corporation (hereinafter referred to as Northrop), alleging that its place *715 of business was in Los Angeles County and that Ventura County was the proper place for trial of the action.
The motions for change of venue were not heard on April 1 but were apparently continued by stipulation to either April 7 or 8. 2 On April 6 a declaration of service was filed showing that on March 25 Libbey-Owens-Ford Glass Company, a corporation (hereinafter referred to as Libbey), was served as “Doe Twelve” in San Francisco County, and on the same day a “First Amendment to Complaint” was served and filed by plaintiff reciting that pursuant to section 474 of the Code of Civil Procedure 2 3 defendant sued in the complaint under the fiсtitious name of “Doe Twelve” was thereby amended to read “Libbey-Owens-Ford Glass Company.” Additionally, on April 6 counsel for plaintiff filed a declaration stating that on March 25 he had ascertained the name of ‘ ‘ Doe Twelve ’ ’ and served Libbey as “Doe Twelve”; that Libbey was an Ohio corporation doing business in California and had designated with the Secretary of State its principal place of business in California as 635 Rialto Building, San Francisco, and the C T Corporation System as its agent to accept service; that Libbey had complied with former section 6202 of the Corporations Code of the State of California; that service of summons and complaint was effectuated by service upon said designated agent on March 25; that on April 6, “ a substitution of name ’' was filed substituting Libbey for “Doe Twelve”; that Libbey, accordingly, at all times mentioned in the complaint was a resident of San Francisco County; that Libbey was a necessary party to the action as a manufacturer and distributor of the glass installed in the doors with which plaintiff collided; and that if this glass was defective in its manufacture, construction and distribution as alleged in the complaint, Libbey would be liable to plaintiff in damages. A supplemental declaration was served and filed by counsel for Northrop prior to the hearing on the motion for change of venue asserting that Libbey had its principal place of business in Ohio, with offices in California consisting of a sales office in San Francisco and a regional sales office in Los Angeles, and that any glass sold in the Ventura аrea would have been sold out of the *716 Los Angeles office. This declaration concluded, on information and belief, that Libbey had been joined solely for placing venue in San Francisco County.
When the motions for change of venue came on for hearing Libbey had not appeared in the action 4 nor did it specially appear with respect to these motions. The motions were heard upon the declarations hereinbefore alluded to. In addition there was introduced in evidence by plaintiff a letter from the Secretary of State showing that Libbey had designated San Francisco as its principal place of business in California. On April 8 the motions of Ojai and Northrop to change venue and to transfer the matter to Ventura County were granted. This ruling was based upon the rule that in determining venue the trial court must look only to the residence of defendants who are specifically named at the time the motion for change of venue is tendered; that this rule cannot be circumvented by an amendment substituting the true name of a defendant who has been named in the complaint by a fictitious name; and that plaintiff, in designating Libbey as a defendant, did so solely for the purpose of placing venue in San Francisco County and therefore was not acting in good faith.
Plaintiff contends that although it is the general rule that residence for purposes of venue is to be determined by the pleadings at the time the motion for change of venue is tendered, this rule applies only when a complaint undertakes to mаke substantive amendments to the pleadings, but does not apply where the amendment merely substitutes the true name of a defendant sued and previously named in the complaint by a fictitious name. Ojai and Northrop maintain that the general rule, requiring that a motion to change venue be determined by the pleadings as they stand at the time the motion is interposed, applies in the instant case. This rule, sometimes denominated the “freezing of facts” doctrine, has been articulated in a myriad of eases. (See
Buell
v.
Dodge,
Before proceeding with a discussion of the applicability of the subject rule to the instant ease it should first bе noted that "A corporation . . . may be sued in the county where the contract is made or is to be performed, or where the obligation or liability arises, or the breach occurs; or in the county where the principal place of business of such corporation is situated, subject to the power of the court to change the place of trial as in other cases.’’ (Cal. Const., art. XII, § 16.) This provision is self-executing, applies to domestic and foreign corporations (Hale v.
Bohannon,
Adverting to the general rule hereinbefore set out we note that it has been consistently applied where a plaintiff amends his complaint, subsequent to the interposition of a motion for change of venue, by stating a new cause of action against a resident. (See
Buell
v.
Bodge, supra,
The earliest case on the point here under consideration and the sole Supreme Court case touching upon it, is
Bachman
v.
Cathry
(1896)
The next case in point is
Kallen
v.
Serretto, supra,
The
Kallen
case and the rule that the propriety of a motion to change venue is to be determined by the pleadings as they exist at the time the moving party first appears were distinguished by
Vickerson
v.
Wehr, supra,
In
Warren
v.
Ritter, supra,
The
Bachman
rule was alluded to in
Herschfelt
v.
Knowles-Raymond etc. Co.
(1955)
Reconciling the foregoing cases we conclude that it is the decisional law of this state that when the plaintiff is truly ignorant of the name of a defendant and therefore designates him by a fictitious name, he may, where such complaint alleges оr attempts to state a cause of action against such fictitiously *722 named defendant, amend the complaint to allege the true name of such defendant after a motion for change of venue has been interposed, and prior to the hearing of said motion, and that when such amendment is made the residence of such defendant must be considered in connection with the determination of the motion. This is the rule of the Bachman case. Although Bachman does not explicitly delineate the time during which such amendment may be made, the rule we ascribe to Bachman is implicit from the rationale and language of the opinion. Our understanding of the Bachman rule coincides with that of the Herschfelt and Warren cases where the reviewing court refused to apply the rule because there was no substitution of the true names of the defendants sued by fictitious names by amendment, pursuant to section 474. In Herschfelt a further reason for not applying the rule was the circumstance that the allegation in the complaint that the plaintiff did not know the true names of the said defendants was patently untrue.
A careful reading of the Kallen case discloses that it is not at odds with Bachman and Herschfelt. In Kallen there was likewise no attempt to amend the complaint at any time to allege the true name of the defendant sued by a fictitious name, but, as in Bachman and Herschfelt, the allegation as to the true name was contained in the affidavit in opposition to the motion for change of venue. Upon closer scrutiny, it is also apparent that Kallen was properly enunciating the general rule that after motion for change of venue the trial court cannot permit a substantive change in the complaint, since there the original complaint apparently аlleged that the defendants who drove the vehicle in “ ‘a careless, negligent, and unskilled manner’ ” (p. 549) were the Serrettos, while the amended complaint sought to include the fictitiously named defendants by alleging that “ ‘the defendants, acting through said defendant Ed Serretto, drove . . . etc.’ ” (P. 549.)
We note here that the distinguishment we make in the Kallen case parallels that made in Warren, where the appellate court apparently distinguished between a substantive amendment, where the general rule is applicable, and an amendment which merely substitutes the true name of a defendant who has been sued by a fictitious name. This same distinction was made in Yickerson where it was specifically noted that the rule applied in Kallen is not controlling in the “situation of a substituted defendant. . . .’’(P.682.)
We are persuaded that the conclusion reached by us is
*723
correct because the type of amendment which here concerns us does not state a new cause of action or change the character оf the action, nor does it prejudice the rights of nonresident defendants or constitute action by the trial court which is
functus officio.
It is established that a defendant named in a complaint by a fictitious name is a party to the action from its commencement and an amendment inserting his true name does not change the original cause of action.
(Farris
v.
Merritt, supra,
Defendants argue that the power of the trial court to pass upon the propriety of the subject amendment was
functus officio
because jurisdiction to act, except for the limited purpose of determining the motion for change of venue, was suspended by the timely filing of such motion. (See
Pickwick Stages System
v.
Superior Court,
Turning to the issue of good faith, we first note that in the instant case this issue must be determined in the light of section 474, that is, whether plaintiff’s claimed ignorance of the true name of the subject defendant sued by a fictitious name was real at the time she filed her complaint. We must also determine, in light of sеction 395, plaintiff’s good faith in joining the resident defendant. 8
With respect to the application of section 474 we find nothing in the record which discloses that plaintiff’s allegation that she was ignorant of the true name of defendant “Doe Twelve” was not true. It is clear, moreover, that she did have the party sued by such fictitious name in mind when she filed her complaint since she alleged therein that such defendant was a manufacturer, fabricator and distributor of the glass doors in question. The declaration by plaintiff’s counsel that he did not ascertain the true name of Libbey until March 25 is uncontradicted. The only attempt to contradict this assertion is that contained in the supplemental declaration filed by Northrop’s counsel that he was informed and believed that Libbey was joined solely for the purpose of having the action tried in San Francisco County. This assertion does not serve to establish the facts therein because an affidavit which is to be used as evidence must be positive, direct and not based upon hearsay. Affidavits made upon information and belief as to the facts purporting to be stated therein are hearsay and must be disregarded.
(Riviello
v.
Journeymen Barbers etc. Union,
Adverting to the applicability of the “good faith” provision of section 395, we note that the usual test by which to determine whether a defendant has been joined in good faith is whether or not the complaint states a cause of action against him.
(Taff
v.
Goodman,
Defendants contend that even if Libbey was properly substituted for a fictitiously named defendant, they are nevertheless entitled to a change of venue because plaintiff’s second cause of action does not state a cause of action against Libbey, the only defendant named therein who is alleged to be a resident of San Francisco County.
9
In urging this contention defеndants rely upon the well established rule that when several causes of action are alleged in a complaint a motion for change of venue must be granted on all causes if the moving defendant is entitled to a change on any one.
(Haurat
v.
Superior Court,
Defendants’ assertion that the second cause of action does not state a cause of action against Libbey is predicated upon
Greenman
v.
Yuba Power Products, Inc.,
A perusal of the allegations of the second cause of action discloses that if the theory relied upon by plaintiff is that delineated in
Greenman
and
Vandermark
the complaint, as to this alleged cause, is inartfully drawn. As pleaded, the second cause of action appears to be рredicated upon the theory of breach of an implied warranty for merchantability under the sales act. Under the
Greenman
doctrine the rule of strict liability in tort is not based on the law of contract warranties, nor upon the implied warranties of the Sales Act, nor upon negligence.
(Greenman
v.
Yuba Power Products, Inc., supra,
pp. 62-65;
Alvarez
v.
Felker Mfg. Co.,
*728 In spite of these deficiencies, however, we cannot say that the complaint does not meet the test set forth in the cases hereinbefore cited; it is not prima facie so glaringly and vitally defective as to be beyond correction by amendment. To the contrary, it does “shadow forth” the semblance of a cause of action against Libbey, either upon the theory of strict liability or that of breach of the implied warranties of fitness for use and merchantable quality. With particular regard to the theory of strict liability, we note that the complaint alleges that the glass doors in question were installed in the common passageway leading intо the room which plaintiff occupied and that said doors broke when plaintiff “came into contact with them.” This allegation is susceptible of the inference that plaintiff was using such doors. Accordingly, although the allegations of'the second cause of action are ineptly pleaded, it cannot be said that said allegations, insofar as they concern Libbey, indicate on their face, and without any showing to the contrary, that Libbey was merely joined for the purpose of retaining venue in San Francisco County.
Turning, finally, to the question of whether Libbey was actually a resident of San Francisco County we note that the record indisputably shows that Libbey has designated such county as its principal place of business in its certificate of qualification prerequisite to its transacting intrastate business in California as required by Corporations Code section 6403. The only showing by defendants as to Libbey’s residence is the declaration of the attorney for Northrop that Libbey maintained a “local sales office in San Francisco and has its regional sales office in Los Angeles.” This allegation in no way counters of refutes the fact, established by the certificate, as to Libbey’s
principal
place of business. Having filed pursuant to Corporations Code section 6403, Libbey’s principal place of business has become fixed by law.
(Bohn
v.
Better Biscuits, Inc.,
We are not unmindful of the rule announced in
Partch
v.
Adams,
Libbey has filed for the first time on this appeal, an affidavit by its district manager to the effect that in October 1964 Libbey’s regional office was moved from San Francisco to Los Angeles and that its San Francisco office then became the District Office for Northern California. We cannot consider this affidavit since it was not presented to or considered by the
*730
trial court and we are precluded from considering matters
dehors
the record.
(Dryer
v.
Dryer,
Let a peremptory writ of mandate issue.
Sullivan, P. J., and Sims, J., concurred.
The petition of the real party in interest Ojai Hotel Co. for a hearing by the Supreme Court was denied September 28, 1966.
Notes
AI1 dates hereinafter referred to are in the year 1966.
The record does not disclose when the hearing was actually held. Plaintiff states that it was continued by stipulation to April 8 at her request; Ojai states that it was continued by stipulation at plaintiff’s request to April 7. In any event the record discloses that both motions for change of venue were granted on April 8.
TJnless otherwise indicated all statutory references are to the Code of Civil Procedure.
The record discloses that Libbey had obtained an order extending time to plead to the complaint to April 25.
One California ease states that the merits of a motion for change of venue are determined upon the pleadings as they stand at the time of hearing the motion. (See
Peterson v. Sherman,
The same rationale was applied to
McClung
v.
Watt,
The opinion does not disclose the nature of these amendments.
Seetion 395 in pertinent part provides: “If any person . . . has been made a defendant solely for the purpose of having the action tried in the county . . . where he resides, his residence must not he considered in determining the proper place for the trial of the action. ’ ’
Neither movant asserts that a cause of action is not stated against Libbey in the first cause which sounds in negligence.
Although the Supreme Court denied a hearing in
Bohn,
the views therein expressed hy the District Court of Appeal were approved in a memorandum opinion accompanying the order of denial. In
Hale
v.
Bohannon,
