When real estate is sold while under lease, the relationship of landlord and tenant is created ipso facto as between the purchaser and the tenant as if the purchaser had been the landlord in the first instance and the purchaser shall be entitled to all the benefits and rights under such lease as if he had been the lessor from the date of the purchase.
S.C. Code § 27-35-50