In an action or motion, founded on contract, against two or more defendants, although the plaintiff may be barred as to one or more of them, yet he may have judgment against any other or others of the defendants, against whom he is not so barred.
Code 1950, § 8-367; 1977, c. 617.