~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_extra.cc

  • Committer: Djellel E. Difallah
  • Date: 2010-03-27 10:10:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1429.
  • Revision ID: ded@ubuntu-20100327101049-oo3arvatjoyku124
merge my_decimal and decimal

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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* Extra functions we want to do with a database */
17
17
/* - Set flags for quicker databasehandler */
67
67
static void heap_extra_keyflag(register HP_INFO *info,
68
68
                               enum ha_extra_function function)
69
69
{
70
 
  for (uint32_t idx= 0; idx< info->getShare()->keys; idx++)
 
70
  uint32_t  idx;
 
71
 
 
72
  for (idx= 0; idx< info->s->keys; idx++)
71
73
  {
72
74
    switch (function) {
73
75
    case HA_EXTRA_CHANGE_KEY_TO_UNIQUE:
74
 
      info->getShare()->keydef[idx].flag|= HA_NOSAME;
 
76
      info->s->keydef[idx].flag|= HA_NOSAME;
75
77
      break;
76
78
    case HA_EXTRA_CHANGE_KEY_TO_DUP:
77
 
      info->getShare()->keydef[idx].flag&= ~(HA_NOSAME);
 
79
      info->s->keydef[idx].flag&= ~(HA_NOSAME);
78
80
      break;
79
81
    default:
80
82
      break;