On the trial of all prosecutions for the violation of law by the sale or giving away of liquors, bitters, or drinks, the state shall not be confined to the proof of a single violation, but may give evidence in any one or more offenses of the same character committed anterior to the day laid in the indictment or in the affidavit, and not barred by the statute of limitations; but in such case, after conviction or acquittal on the merits, the accused shall not again be liable to prosecution for any offense of the same character committed anterior to the day laid in the indictment or in the affidavit.