• unknown's avatar
    BUG#6762 ALTER TABLE gives weird results and error message · 23b2a53d
    unknown authored
      - Better error message when table definition has changed
    
    
    mysql-test/r/ndb_alter_table.result:
      New error message and code when table definition has changed.
    mysql-test/r/ndb_multi.result:
      Safety, drop tables in second server as well
    mysql-test/t/ndb_alter_table.test:
      New error message and code when table definition has changed.
    mysql-test/t/ndb_multi.test:
      Safety, drop tables in second server as well
    sql/ha_ndbcluster.cc:
      When error 284 is returned from NDB a check must be made to see what the error really means.
       - if table does not exists any more, return 709 -> No such table exists
       - if table still exists, table has most likely been altered and table id and version has 
         changed, print  hardcoded  errormessage indicating that transaction should retried
        (this error message should be translated to a langauge dependent error message in 5.0)
        
      Remove mapping from 284 to HA_ERR_NO_SUCH_TABLE
    23b2a53d
ndb_multi.test 1.08 KB