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

SQL: mixing _key and key columns in the DML queries must be disallowed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8
    • sql
    • None

    Description

      DML should contain either placeholder for _key (_val) or subset of key (value) columns but not both. Also we should keep in mind _key/_value aliases

      Given table with primary key column id and value column salary. Next queries should be validated to parsing error:

      INSERT INTO TEST_TABLE (_key, id, salary) VALUES (1, 2, 42);
      UPDATE TEST_TABLE SET _val = 1, salary = 2;
      

      Attachments

        Issue Links

          Activity

            People

              pkouznet Pavel Kuznetsov
              pkouznet Pavel Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 40m
                  40m