× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
ivangron reported 2017-03-14T21:07:56Z  · tariqrahiman last modified 2017-03-21T15:54:00Z

TeraData -> Extraction & Scripting of Table with Primary Index not scripting correctly


customer request
Priority Major
Complexity Unknown
Component DB - Teradata
Version 18.0

  Teradata allows for specifying a PRIMARY INDEX in the create table DDL statement.  This primary index can be different then the primary key and needs to be scripted in the table statement.  Currently we are not correctly extracting and scripting the primary index information.  Example:

CREATE TABLE TEST_PKPI (
    PI_COL1 INTEGER NOT NULL, 
    PK_COL2 INTEGER NOT NULL, 
    PU_COL3 INTEGER NOT NULL,
    PU_COL4 INTEGER NOT NULL,
    PU_COL5 INTEGER NOT NULL,
    PRIMARY KEY (PK_COL2)
    ) UNIQUE PRIMARY INDEX _ads_index_01 (PI_COL1, PU_COL5)
GO
ALTER TABLE TEST_PKPI ADD CONSTRAINT _ADS_UKEY_IVAN UNIQUE (PU_COL3)
GO
CREATE INDEX TEST_PKPI_IDX_01("PU_COL5") ON "TEST_PKPI"
GO
CREATE INDEX TEST_PKPI_IDX_02("PU_COL3", "PU_COL4", "PU_COL5") ON "TEST_PKPI"
GO

  The UNIQUE PRIMARY INDEX _ads_index_01 on columns PI_COL1 and PU_COL5 needs to be extracted and scripted with the table ddl statement and not as a index object.  There is no support for a CREATE PRIMARY INDEX statement, instead this information must be provided in the create table statement or modified through the atler table statment.

11 attachments

Issue #15075

Closed
Fixed
Resolved 2017-03-16T19:15:06Z
 
 
Completion
No due date
Fixed Build v18.0.4-4
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017