oceanbase / odc

OceanBase Developer Center(ODC), An open-source, enterprise-grade database tool for collaborative development
https://github.com/oceanbase/odc
Apache License 2.0
536 stars 55 forks source link

[Bug]: npe will be thrown when detail a table with unnamed constraints for oracle mode on OceanBase 4.2 #519

Closed yhilmare closed 1 year ago

yhilmare commented 1 year ago

ODC version

4.2.0

OB version

4.2.1

What happened?

create a table as follow:

create table out_of_line_tbl(
    id integer,
    name varchar2(64),
    PRIMARY KEY(id),
    unique(name)
);

double click this table to show it's detail:

截屏2023-10-16 16 57 12

What did you expect to happen?

do not thrown npe

How can we reproduce it (as minimally and precisely as possible)?

follow 'what happened'

Anything else we need to know?

No response

Cloud

No response

yhilmare commented 1 year ago

the name of a in line constraint or out of line constraint does not necessarily exist so that we can not expect that we can get it from the ddl all the time even which is feasible in OceanBase 3.x

sl01388797 commented 1 year ago

Image

pass