If the demurrer is sustained, the judgment is final upon the indictment or information demurred to, and is a bar to another prosecution for the same offense, unless the court, being of opinion that the objection on which the demurrer is sustained may be avoided in a new indictment or information, direct the case to be resubmitted to the same or another grand jury, or that a new information be filed.
Okla. Stat. tit. 22, § 508