|
From: <an...@ne...> - 2006-10-16 07:54:56
|
Hello,
did anyone have the time to look into the issue I submitted and confirm i=
t?
Thank you very much,
Antonio
Quoting an...@ne...:
> Quoting Michael Saffitz <m...@sa...>:
>
> > Antonio is correct here-- it looks like the postgres triggers aren't =
being
> > correctly generated for this table. I had thought I had fixed this, b=
ut I
> > guess not. These are in the db writer for postgres within the db adm=
in
> > package. Search for 'ON INSERT TO'. Antonio-- it may help if you fo=
rward
> > along your install logs (that include all SQL used in generating the
> > instance).
> > Steve's also correct-- bug 177 appears to track a different issue.
>
> I fear that while the database error does appear to be different, the
> underlying issue is exactly the same.
>
> Following Steve's advice to try suggesting a fix, I've been digging fur=
ther.
> If I got your code correctly, all this wreck is generated when the sche=
ma
> hierarchy gets converted, in
>
> GUS/DBAdmin/src/java/org/gusdb/dbadmin/util/GusClassHierarchyConverter=
.java
>
> In function 'buildSuperClassView', (around line 440 in GUS 3.5; but
> 'buildSubClassView' exhibits the same issue) the code goes like this:
>
> -----------------------------------------------------------------------=
-----
> // Housekeeping Columns and complete for the Version View
> if (impTable.isVersioned()) {
> superClassView.setVersioned(true);
> verSql =3D sql.concat(" ");
>
> for (Iterator i =3D verHousekeepingColumns.iterator(); i.hasNext();) =
{
> Column column =3D (Column)i.next();
> verSql =3D verSql.concat(", " + column.getName());
> superClassView.getVersionView().addColumn(new
> ColumnPair(column.getName(),
> column.getName()));
> }
> verSql =3D verSql.concat(
> " FROM " +
> impTable.getVersionTable().getSchema().getName() +
> "." + impTable.getVersionTable().getName() +
> ";");
> superClassView.getVersionView().setSql(verSql);
> }
> -----------------------------------------------------------------------=
-----
>
> Now, the problem is that while 'verSql' is correctly generated (because=
it
> starts with 'sql'), the original view's colums are not copied at all.
>
> The reason is that GusView behaves differently from GusTable, since its
> 'setVersioned()' method does not copy the base view colums as one might=
have
> expected after having looked at GusTable.
>
> As far as I can tell this has no relation to the actual database instan=
ce in
> use, but I'd say that this is the core of the problem.
>
> HTH,
>
> Antonio
>
>
> ----------------------------------------------------------------
> Net Wise webmail system - http://www.netwise.it
> This message was sent using IMP, the Internet Messaging Program.
>
>
> -----------------------------------------------------------------------=
--
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share=
your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
> _______________________________________________
> Gusdev-gusdev mailing list
> Gus...@li...
> https://lists.sourceforge.net/lists/listinfo/gusdev-gusdev
>
> !DSPAM:452a0cfd138065873587180!
>
>
----------------------------------------------------------------
Net Wise webmail system - http://www.netwise.it
This message was sent using IMP, the Internet Messaging Program.
|