(1) The person has been discharged from a commitment on a criminal charge, and afterwards is committed for the same offense by the legal order or process of the court wherein the person is bound by a release agreement or has deposited security, or in which the person is indicted or convicted for the same offense;
(2) After a judgment of discharge for a defect of evidence or for a material defect in the commitment, in a criminal case, the party again is arrested on sufficient evidence, and committed by legal process for the same offense;
(3) In a civil action or suit, the party has been discharged for illegality in the judgment or process, and afterwards is imprisoned for the same cause of action or suit; or
(4) In a civil action or suit, the person has been discharged from commitment on a writ of arrest, and afterwards is committed on execution, in the same action or suit, or on a writ of arrest in another action or suit, after the dismissal of the first one. [Amended by 1973 c.836 §325; 2003 c.14 §17; 2003 c.576 §316]