[Uml-devel] [Bug 73632] New: umbrello sqlwriter output is anything but SQL..

Riku Voipio nchip at kos.to
Tue Jan 27 13:24:00 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=73632      
           Summary: umbrello sqlwriter output is anything but SQL..
           Product: umbrello
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel at kde.org
        ReportedBy: nchip at kos.to


Version:           cvs (using KDE KDE 3.1.5)
Installed from:    Debian testing/unstable Packages

The umbrello generate code -> SQL does not produce anything
meaningfull. comments get mixed between declarations and most declarations are not separated by "," like they should.

Here is an example (I this is <pre> and not wrapped...):

--
-- TABLE: blacklist
-- aktiivinen musta lista
--

CREATE TABLE blacklist (
        id integer PRIMARY KEY yksilöivä id-numero verkkotunnukselle    tld varchar(40) viite tld-tauluun. domain-kentän kanssa uniikki,
        domain varchar(250) verkkutunuksen nimi tekstinä. tld:n ja domainin yhdistelmän on oltava uniikki,
        added timestamp päiväys milloin lisätty,
        type integer Tyyppi: 1=roskapostittaja, 2=roskapostin tukipalvelu, 3=koeajalla, 4=valkoinen,
        state integer verkkotunnuksen tila: 1=aktiivinen,2=register lock,3=vanhentunut,4=poistunut,5=ei toimi
,
        registrar_id integer ,
        CONSTRAINT  FOREIGN KEY (1) REFERENCES blacklist(0..*)
);

I have written a small patch (will attach soon) which produces usable output:


--
-- TABLE: blacklist
-- aktiivinen musta lista
--

CREATE TABLE blacklist (
        id integer PRIMARY KEY ,        --yksilöivä id-numero verkkotunnukselle
        tld varchar(40) ,       --viite tld-tauluun. domain-kentän kanssa uniikki
        domain varchar(250) ,   --verkkutunuksen nimi tekstinä. tld:n ja domainin yhdistelmän on oltava uniikki
        added timestamp ,       --päiväys milloin lisätty
        type integer ,  --Tyyppi: 1=roskapostittaja, 2=roskapostin tukipalvelu, 3=koeajalla, 4=valkoinen
        state integer , --verkkotunnuksen tila: 1=aktiivinen,2=register lock,3=vanhentunut,4=poistunut,5=ei toimi

        registrar_id integer
,
        CONSTRAINT  FOREIGN KEY (1) REFERENCES blacklist(0..*)
);

The contraint is still wrong, but I have no idea how that should be done???




More information about the umbrello-devel mailing list