Issue 85792 - no links between views
Summary: no links between views
Status: CONFIRMED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 2.3.1
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-01 10:10 UTC by viandor
Modified: 2013-07-30 02:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description viandor 2008-02-01 10:10:35 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]
Comment 1 joergbudi 2008-02-15 19:56:42 UTC
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

Comment 2 Frank Schönheit 2008-02-18 09:46:26 UTC
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.
Comment 3 Rob Weir 2013-07-30 02:40:29 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.