~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Brian Aker
  • Date: 2011-02-12 10:06:03 UTC
  • mfrom: (2154.2.16 drizzle-build)
  • Revision ID: brian@tangent.org-20110212100603-i5ww0s02p8l4a8q7
Merge in solaris tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#include "drizzled/charset.h"
47
47
#include "drizzled/internal/m_string.h"
48
48
#include "plugin/myisam/myisam.h"
 
49
#include "drizzled/plugin/storage_engine.h"
49
50
 
50
51
#include <drizzled/item/string.h>
51
52
#include <drizzled/item/int.h>
54
55
#include <drizzled/item/null.h>
55
56
#include <drizzled/temporal.h>
56
57
 
 
58
#include <drizzled/refresh_version.h>
 
59
 
57
60
#include "drizzled/table/singular.h"
58
61
 
59
62
#include "drizzled/table_proto.h"
1751
1754
  }
1752
1755
}
1753
1756
 
 
1757
/*
 
1758
  Is this instance of the table should be reopen or represents a name-lock?
 
1759
*/
 
1760
bool Table::needs_reopen_or_name_lock() const
 
1761
 
1762
  return getShare()->getVersion() != refresh_version;
 
1763
}
 
1764
 
 
1765
uint32_t Table::index_flags(uint32_t idx) const
 
1766
{
 
1767
  return getShare()->getEngine()->index_flags(getShare()->getKeyInfo(idx).algorithm);
 
1768
}
 
1769
 
 
1770
void Table::print_error(int error, myf errflag) const
 
1771
{
 
1772
  getShare()->getEngine()->print_error(error, errflag, *this);
 
1773
}
 
1774
 
1754
1775
} /* namespace drizzled */