• unknown's avatar
    Fixes bug with tableImpl with blobs not being initialized properly w.r.t... · 95c21a25
    unknown authored
    Fixes bug with tableImpl with blobs not being initialized properly w.r.t pointer to blob tableImpl in column
        added blob to test to see that blob tables don't show up in show tables
        auto increment setting need not fetch blob tables (will otherwise generate error during table creation)
        moved addBlobTables out of fetchGlobalTableImpl to get_local_table_info
        changed addBlobTables to start from last column and break if all blobs added
        also addBlobTables will return -1 if failed (typically getTable)
        changed to using get_local_table_info with internal table name where applicable for efficiency
        added option to get_local_table_info wether to fetch blob tables or not
        getTable always fetches the blobtables
        moved addBlobTables to get_local_table_info to always be called, even if main table goes to cache only
    
    
    mysql-test/r/ndb_autodiscover.result:
      added blob to test to see that blob tables don't show up in show tables
    mysql-test/t/ndb_autodiscover.test:
      added blob to test to see that blob tables don't show up in show tables
    ndb/src/ndbapi/Ndb.cpp:
      auto increment setting need not fetch blob tables (will otherwise generate error during table creation)
    ndb/src/ndbapi/NdbDictionaryImpl.cpp:
      moved addBlobTables out of fetchGlobalTableImpl to get_local_table_info
      changed addBlobTables to start from last column and break if all blobs added
      also addBlobTables will return -1 if failed (typically getTable)
      changed to using get_local_table_info with internal table name where applicable for efficiency
    ndb/src/ndbapi/NdbDictionaryImpl.hpp:
      added option to get_local_table_info wether to fetch blob tables or not
      getTable always fetches the blobtables
      moved addBlobTables to get_local_table_info to always be called, even if main table goes to cache only
    95c21a25
NdbDictionaryImpl.cpp 78.8 KB