Menu

#3 Class duplications with lowercase names in Table XML files

open
nobody
5
2003-02-25
2003-02-25
No

It was found that if you have lower case class names in
your Table.dtd xml files, then Pymerase creates
duplicate class entries in the pymerase data structure.
A temporary fix is to just capitalize the first letter
of all Class names (tables names) including the ones
named in the foreign_key attributes.

Discussion

  • Diane Trout

    Diane Trout - 2003-04-09

    Logged In: YES
    user_id=122283

    Many other languages are case sensitive, and I think that pymerase should
    be as well. This bug comes from a mismatch in the case between the name of
    a class and an association pointing to it.

    I think the proper solution is to include error handling to complain about the
    mismatch. (For instance see if there are were classes defined as an
    association, but without ever actually being fully defined so we can flag that
    as an error).

     
  • Brandon King

    Brandon King - 2003-04-09

    Logged In: YES
    user_id=552216

    I agree with your conclusion, but this particular error is
    caused by nameMangling. If you declare a class as lower case
    like 'dvd', you will end up with two class objects, one with
    the name 'dvd', and the other with the name 'Dvd'. Basicly
    every lowercase class will get duplicated.

     

Log in to post a comment.

Auth0 Logo