~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_extra.cc

  • Committer: Mark Atwood
  • Date: 2011-12-28 02:50:31 UTC
  • Revision ID: me@mark.atwood.name-20111228025031-eh4h1zwv4ig88g0i
fix tests/r/basic.result

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
16
/* Extra functions we want to do with a database */
17
17
/* - Set flags for quicker databasehandler */
18
18
/* - Set databasehandler to normal */
19
19
/* - Reset recordpointers as after open database */
20
20
 
21
 
#include "heapdef.h"
 
21
#include "heap_priv.h"
 
22
 
 
23
using namespace drizzled;
22
24
 
23
25
static void heap_extra_keyflag(register HP_INFO *info,
24
26
                               enum ha_extra_function function);
65
67
static void heap_extra_keyflag(register HP_INFO *info,
66
68
                               enum ha_extra_function function)
67
69
{
68
 
  uint32_t  idx;
69
 
 
70
 
  for (idx= 0; idx< info->s->keys; idx++)
 
70
  for (uint32_t idx= 0; idx< info->getShare()->keys; idx++)
71
71
  {
72
72
    switch (function) {
73
73
    case HA_EXTRA_CHANGE_KEY_TO_UNIQUE:
74
 
      info->s->keydef[idx].flag|= HA_NOSAME;
 
74
      info->getShare()->keydef[idx].flag|= HA_NOSAME;
75
75
      break;
76
76
    case HA_EXTRA_CHANGE_KEY_TO_DUP:
77
 
      info->s->keydef[idx].flag&= ~(HA_NOSAME);
 
77
      info->getShare()->keydef[idx].flag&= ~(HA_NOSAME);
78
78
      break;
79
79
    default:
80
80
      break;