When trying to regen the table rule program for sod_det we get this syntax error: Unknown or ambiguous table old_sod_det. (725)
The Syntax Check in the toolbar is strictly local to whatever is typed into the editor widget. Therefore it does not have context for the old_* files and will give a compile error. Save the table rule, generate it, and check the syntax then.