"the judge's ruling was handed down in a preliminary hearing rather than a trial and was therefore unappealable"