• Sergei Petrunia's avatar
    CLX-80: ALTER TABLE t ENGINE=CLUSTRIX fails with an error · 4252df83
    Sergei Petrunia authored
    Fix a number of issues that were preventing row-copying ALTER TABLE
    from working:
    
    - ha_xpand::create() and ha_xpand::open() should take the table name
      from the arguments, not from TABLE_SHARE object.
    
    - ha_xpand::rename_table() should not use decode_file_path() as that
      fails with an error for temporary table names (#sql_nnnn)
    
    - Maintenance of clustrix_table_oid through TABLE_SHARE::tabledef_version
      didn't cover the temporary work tables created by ALTER TABLE code.
      Switch to storing it in the Xpand_share instead, and update it in
      ::create() and ::open.
    
    - On as-needed-basis, add quoting of table names to pieces of code that
      build SQL statements to be ran on the backend. This is a stop-gap
      measure until a real solution is implemented.
    4252df83
basics.result 3.02 KB