Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-9989

JDBC v2: getPrimaryKeys always returns constant COLUMN_NAME, KEY_SEQ, PK_NAME

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.8
    • jdbc
    • None

    Description

      Jdbc v2 driver has hardcoded values for meta attibutes :
      COLUMN_NAME = _KEY
      KEY_SEQ = 1
      PK_NAME = _KEY

      But this values should be different for different tables.

      how to reproduce:
      1) connect to the cluser using jdbcv2 driver
      2) CREATE TABLE TAB (ID LONG, SEC_ID LONG, VAL LONG, PRIMARY KEY(ID, SEC_ID))
      3) check result of connection.getMetadata().getPrimaryKeys()

      Attachments

        Issue Links

          Activity

            People

              pkouznet Pavel Kuznetsov
              pkouznet Pavel Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m