Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6596

Schema extraction double quotes expressions, resulting in un-executabe create statements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.17.0, 5.2.0, 4.16.2, 5.1.3
    • 4.17.0, 5.2.0, 4.16.2, 5.1.3
    • core
    • None

    Description

      create table data (id varchar primary key, number integer,currency decimal(6,2),
      lista varchar[]);
      
      create index data_index on data (currency*number) INCLUDE (LISTA);
      
      show create table data_index;
      
      +-----------------------------------------------------------------------------+
      |                              CREATE STATEMENT                               |
      +-----------------------------------------------------------------------------+
      | CREATE INDEX DATA_INDEX ON DATA("(CURRENCY * NUMBER)", ID) INCLUDE (LISTA)  |
      +-----------------------------------------------------------------------------+
      

      The create statement double quotes the expression, and cannot be executed directly.

      Attachments

        Activity

          People

            richardantal Richárd Antal
            stoty Istvan Toth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: