Apache OpenOffice (AOO) Bugzilla – Issue 85792
no links between views
Last modified: 2013-07-30 02:40:29 UTC
In postgres, i have the following tables/views structure: --------------------------------------------------------- CREATE TABLE T1 ( ID_T1 serial NOT NULL, INFO varchar(50) NOT NULL, CONSTRAINT PK_T1 PRIMARY KEY (ID_T1) ) CREATE TABLE T2 ( ID_T2 serial NOT NULL, ID_T1 int4 NOT NULL, INFO varchar(50) NOT NULL, CONSTRAINT PK_T2 PRIMARY KEY (ID_T2), CONSTRAINT FK_T2_T1 FOREIGN KEY (ID_T1) REFERENCES T1 (ID_T1) ); CREATE VIEW v_t1 AS SELECT * FROM T1; CREATE VIEW v_t2 AS SELECT * FROM T2; --------------------------------------------------------- I'm building a request with OooBase. If i select T1 and T2, links (relations) between tables are OK (t2.id_t1 = t1.id_t1). If i select v_t1 and v_t2, OooBase don't "guess" the links between the two views. By comparison, it does work with MS-Access. We are really bored, because we can't use OooBase without the capacity to show (auto-detect) links between views. Is there any way to autodetect links between views (i mean we don't want to manually create links, because our database is too big)?. Could it be a new feature, an enhancement? Any help / reply appreciated. [Ooo 2.3.1 + SDBC 0.7.5 + postgresql 8.2 - on windows XP]
Hmm, can either be a driver problem and/or a framework problem @fs: Can u give a short comment, whether OOo frameworks supports this feature ? If yes, how ? Should a View service support the XKeysSupplier or should simply the Table service instance of the View part export the relevant keys ? (the latter may not be implemented in my driver atm). Thx and bye, Joerg
The higher layers don't care for whether a table is in fact a view. That is, the table is asked for its relationships to other tables, by using either the database meta data or (if present) the sdbcx-level interfaces. So, I would look for inconsistencies here between the "normal table" and the "view" implementation in the driver.
Reset assignee on issues not touched by assignee in more than 1000 days.