~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Lee Bieber
  • Date: 2011-03-23 00:09:31 UTC
  • mfrom: (2241.3.9 refactor3)
  • mto: This revision was merged to the branch mainline in revision 2246.
  • Revision ID: kalebral@gmail.com-20110323000931-t13v9s8a91en53de
Merge Olaf - more code refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
979
979
    }
980
980
 
981
981
    /*
982
 
      Before we test the global cache, we test our local session cache.
983
 
    */
984
 
    if (cached_table)
985
 
    {
986
 
      assert(false); /* Not implemented yet */
987
 
    }
988
 
 
989
 
    /*
990
982
      Non pre-locked/LOCK TABLES mode, and the table is not temporary:
991
983
      this is the normal use case.
992
984
      Now we should:
1017
1009
      ppp= table::getCache().equal_range(key);
1018
1010
 
1019
1011
      table= NULL;
1020
 
      for (table::CacheMap::const_iterator iter= ppp.first;
1021
 
           iter != ppp.second; ++iter, table= NULL)
 
1012
      for (table::CacheMap::const_iterator iter= ppp.first; iter != ppp.second; ++iter, table= NULL)
1022
1013
      {
1023
1014
        table= iter->second;
1024
1015