A surety has all the rights of a guarantor, whether he becomes personally responsible or not.
R.L.1910, § 1057.