2352. Where the surety binds himself with the principal debtor as solidary surety or solidary co-debtor, he may no longer invoke the benefits of discussion and division; the effects of his undertaking are governed by the rules established with respect to solidary debts so far as they are consistent with the nature of the suretyship.