Okla. Stat. tit. 22, § 832
The court must decide all questions of law which arise in the course of the trial.
R.L. 1910, § 5871.