[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: seeming inconsistency in class_assign_course
It could be the problem in the schema. I can't open schema at the moment.
Will try to do it on weekends.
I think the class can't be connected to umo_base but to a particular version
of the course.
2009/5/28 Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
> The way I read schema, course_to_class, connects class with
> course, which is in turn is connected with umo_base.
> How do we know which version of the course the class is
> connected to?
>
> Alexey Parshin wrote:
> > p_course_id is umo version id.
> >
> > 2009/5/28 Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
> >
> >
> >> In the beginning of the above-mentioned function:
> >> IF NOT is_published(object_type_id('COURSE'),p_course_id) THEN
> >> RAISE EXCEPTION 'The course id=% must be published', p_course_id;
> >> END IF;
> >>
> >> Now, as far as I understand, is_published testes umo_version,
> >> while p_course_id would be umo_base. Am I missing something?
> >>
> >> --
> >> Ilya A. Volynets-Evenbakh
> >> http://www.total-knowledge.com
> >>
> >>
> >>
> >
> >
> >
>
>
> --
> Ilya A. Volynets-Evenbakh
> http://www.total-knowledge.com
>
>
--
Alexey Parshin,
http://www.sptk.net