• Sergei Golubchik's avatar
    MDEV-9949 Connect Engine: long SRCDEF leads to broken table · ea195d37
    Sergei Golubchik authored
    Two bugs here:
    * the server could create an frm (with a long attribute
      value) that it could not read back
    * Connect engine opened files from inside DROP TABLE
      and was ignoring the error (correctly) but was not
      hiding it from the server (incorrectly). This caused
      a crash later when DROP TABLE was finishing successfully
      while stmt_da already have seen an error.
    
    Also added a text case for
      MDEV-7935 CREATE TABLE ... AS SELECT ... can cause a Server crash (Assertion `0' in Protocol::end_statement)
    because Connect stopped clearing the error status
    in stmt_da as a fix for MDEV-7935
    ea195d37
create_options.h 4.21 KB