O envio de formulários no site de suporte está temporariamente indisponível para manutenção programada. Se precisar assistência imediata, entre em contato com o suporte técnico. Lamentamos o inconveniente.
NOT NULL constraints are not visible for object tables
Descrição
NOT NULL constraints excluded from object table scripts. Steps to reproduce the issue:
Run the script below: CREATE TYPE test_object_t AS OBJECT ( id NUMBER, hiredate DATE, desc_t VARCHAR2 (255), MEMBER FUNCTION f_test RETURN VARCHAR2 ) NOT FINAL /
CREATE OR REPLACE TYPE BODY test_object_t IS MEMBER FUNCTION f_test RETURN VARCHAR2 AS BEGIN RETURN 'V1.0.0'; END; END; /
CREATE TABLE test_objects OF test_object_t NOT SUBSTITUTABLE AT ALL LEVELS ( CONSTRAINT test_objects_pk PRIMARY KEY (id) ) OBJECT ID PRIMARY KEY /
ALTER TABLE test_objects MODIFY (hiredate CONSTRAINT hiredate_nn NOT NULL) /
ALTER TABLE test_objects MODIFY (desc_t CONSTRAINT desc_nn NOT NULL) /
If you run describe test_objects; you see
TABLE test_objects Name Null? Type ----------------------------------------- -------- ---------------------------- ID NOT NULL NUMBER HIREDATE NOT NULL DATE DESC_T NOT NULL VARCHAR2(255)
notice the not nulls created before with the alter statements for HIREDATE and DESC_T.
The not nulls can be seen in the constrains and column tabs in schema browser. The problem is that Toad does not show this information(not null) in any script anywhere (f4 , schema browser, schema compare or extract dll.)
Login necessário
é necessário estar conectado e ter um contrato de manutenção atual para visualizar os artigos de conhecimento premium.
Criado em: 6/3/2024 Última atualização em: 6/3/2024
Thank you for your feedback for Topic Request
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Bem-vindo ao Suporte
Você pode encontrar ajuda de suporte on-line para *produto* da Quest em um local de suporte afiliado. Clique em Continue (Continuar) para ser direcionado ao conteúdo de suporte correto e à assistência a *produto*.
Encerramento do suporte aos navegadores IE 8, 9 e 10
O Portal da Quest Software não é mais compatível com IE8, 9 e 10. Recomendamos a atualização do navegador para a versão mais recente do Internet Explorer ou do Chrome.