Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2911

Catalog Api gives wrong values about NON_UNIQUE column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • any
    • 2.2.0
    • connectivity-mxosrvr
    • None
    • Centos 6.7

    Description

      CREATE TABLE TABLE1(C1 INT, C2 VARCHAR(20))

      CREATE INDEX IDX1 ON TABLE1(C1 ASC)

      CREATE UNIQUE INDEX IDX2 ON TABLE1(C1 ASC)

      SQLStatistics(hstmt, "", SQL_NTS, "", SQL_NTS, "TABLE1", SQL_NTS, SQL_INDEX_ALL, SQL_QUICK)

      SQLGetData(hstmt, 4, SQL_C_CHAR, uniqueValue, size, NULL)

      output: IDX1 : 0, expected : 1

                  IDX2 : 1, expected : 0

      Attachments

        Issue Links

          Activity

            People

              XuWeixin XuWeixin
              XuWeixin XuWeixin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: