• unknown's avatar
    WL1424 Multiple MySQL Servers: SHOW TABLES etc. should detect new and delete old tables. · 692b1e69
    unknown authored
    
    include/my_base.h:
      Added new bit to table create options
      Removed old error code HA_ERR_OLD_METADAT and reused it for HA_ERR_NO_SUCH_TABLE.
    mysql-test/r/ndb_autodiscover.result:
      Updated test cases
    mysql-test/t/ndb_autodiscover.test:
      Updated test cases
    mysql-test/t/ndb_autodiscover2.test:
      Updated test cases
    sql/discover.cc:
      Moved function create_table_from_handler to handler.cc
    sql/ha_ndbcluster.cc:
      Improved discover functionality
      Added .ndb file
      Changed error code mappings for a table that does not exist in engine
      Check for ndb object in THD
      Updated ndbcluster_discover, ndbcluster_list_tables and ndbcluster_can_discover
    sql/ha_ndbcluster.h:
      Improved discover
    sql/handler.cc:
      Added new error message mapping.
      Moved function ha_create_table_from_engine to handler level
      Added new functions ha_can_discover, ha_list_tables and ha_table_exists
    sql/handler.h:
      Added new error message mapping.
      M...
    692b1e69
table.cc 40.9 KB