Giter Site home page Giter Site logo

Comments (8)

KhemrajShankarappa avatar KhemrajShankarappa commented on July 21, 2024

Can someone pls help

from schemaspy.

npetzall avatar npetzall commented on July 21, 2024

Could you supply a small example with just two tables and how the relationship is declared.

Implied won't find it I think, it only looks at PK.

But we do ask the jdbc driver for imported and exported columns/keys.

For me to look into this I also need to know the version of Oracle and driver so that I'm sure to reproduce the issue.

Then I can check different driver if they allow this else we might consider expanding the implied to check on both PK and UQ indexes.

from schemaspy.

KhemrajShankarappa avatar KhemrajShankarappa commented on July 21, 2024

Please see attached screenshot, Attendance_time table has FK to Attendance table (referring to UK for that table)

image

In schema spy this is not visible, hence its not showing up in relationships diagram . We are using ojdbc8-19.14.0.0 driver
Is there any fix for this? so that my FK on UK also visible

image

from schemaspy.

KhemrajShankarappa avatar KhemrajShankarappa commented on July 21, 2024

Version of Oracle is 19.14

from schemaspy.

npetzall avatar npetzall commented on July 21, 2024

Would you be able to supply Sql statement to produce this kind of relationship.

I'm gonna check if there is any filtering applied if a FK is returned but it doesn't reference a PK. Because

from schemaspy.

KhemrajShankarappa avatar KhemrajShankarappa commented on July 21, 2024

Please use this test case:

CREATE TABLE SUPPLIER_KHEM
( supplier_id numeric(10) not null,
supplier_name varchar2(50) not null,
CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
);

CREATE TABLE PRODUCTS_KHEM
( product_id numeric(10) not null,
supplier_id numeric(10) not null,
CONSTRAINT fk_supplier
FOREIGN KEY (supplier_id)
REFERENCES supplier_khem(supplier_id),
CONSTRAINT products_unique UNIQUE (product_id)
);

CREATE TABLE ORDERS_KHEM
( order_id numeric(10) not null,
prodids numeric(10) not null,
CONSTRAINT fk_orders
FOREIGN KEY (prodids)
REFERENCES products_khem(product_id)
);

You will see relation between supplier and products but Orders table is not in picture.
image

from schemaspy.

npetzall avatar npetzall commented on July 21, 2024

I'll need some additional time to look into this, since I find the Oracle 19 container images for M1 a little sketchy since I can't find a release to download of the software for M1(arm64). I'll need to have time to sitt at a different computer.

from schemaspy.

KhemrajShankarappa avatar KhemrajShankarappa commented on July 21, 2024

Sure, meanwhile i tried -meta option as a workaround. Its working but we cant use this method.

image

from schemaspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.