Any witness required to enter into an undertaking, with or without security, shall, on failure or refusal, be committed to jail.
Code 1858, § 5071; Shan., § 7030; Code 1932, § 11570; T.C.A. (orig. ed.), § 40-1126.