The prisoner shall be delivered to the sheriff or deputy sheriff of the county from which the prisoner has been sent, on demand made immediately preceding or during the term at which the prisoner is triable.
Code 1858, § 5406; Shan., § 7384; Code 1932, § 11993; T.C.A. (orig. ed.), § 41-1127.