A discharge to one of several joint debtors, purporting to discharge him only, shall not affect the claim of the creditor against the other joint debtors. The other joint debtors may be sued for the debt and may set off any demand which could have been set off had the action been brought against all the original joint debtors.