~mdcallag/+junk/5.1-map

« back to all changes in this revision

Viewing changes to include/my_base.h

  • Committer: msvensson at pilot
  • Date: 2007-04-24 09:11:45 UTC
  • mfrom: (2469.1.106)
  • Revision ID: sp1r-msvensson@pilot.blaudden-20070424091145-10463
Merge pilot.blaudden:/home/msvensson/mysql/my51-m-mysql_upgrade
into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
    Off by default.
173
173
  */
174
174
  HA_EXTRA_WRITE_CAN_REPLACE,
175
 
  HA_EXTRA_WRITE_CANNOT_REPLACE
 
175
  HA_EXTRA_WRITE_CANNOT_REPLACE,
 
176
  /*
 
177
    Inform handler that delete_row()/update_row() cannot batch deletes/updates
 
178
    and should perform them immediately. This may be needed when table has 
 
179
    AFTER DELETE/UPDATE triggers which access to subject table.
 
180
    These flags are reset by the handler::extra(HA_EXTRA_RESET) call.
 
181
  */
 
182
  HA_EXTRA_DELETE_CANNOT_BATCH,
 
183
  HA_EXTRA_UPDATE_CANNOT_BATCH
176
184
};
177
185
 
178
186
        /* The following is parameter to ha_panic() */
385
393
#define HA_ERR_TABLE_NEEDS_UPGRADE 164  /* The table changed in storage engine */
386
394
#define HA_ERR_TABLE_READONLY    165  /* The table is not writable */
387
395
 
388
 
#define HA_ERR_AUTOINC_READ_FAILED 166/* Failed to get the next autoinc value */
389
 
#define HA_ERR_AUTOINC_ERANGE    167  /* Failed to set the row autoinc value */
390
 
#define HA_ERR_LAST              167  /*Copy last error nr.*/
 
396
#define HA_ERR_AUTOINC_READ_FAILED 166   /* Failed to get next autoinc value */
 
397
#define HA_ERR_AUTOINC_ERANGE    167     /* Failed to set row autoinc value */
 
398
#define HA_ERR_GENERIC           168     /* Generic error */
 
399
#define HA_ERR_LAST              168 /*Copy last error nr.*/
391
400
/* Add error numbers before HA_ERR_LAST and change it accordingly. */
392
401
#define HA_ERR_ERRORS            (HA_ERR_LAST - HA_ERR_FIRST + 1)
393
402
 
394
403
        /* Other constants */
395
404
 
396
405
#define HA_NAMELEN 64                   /* Max length of saved filename */
397
 
#define NO_SUCH_KEY ((uint)~0)          /* used as a key no. */
 
406
#define NO_SUCH_KEY (~(uint)0)          /* used as a key no. */
 
407
 
 
408
typedef ulong key_part_map;
 
409
#define HA_WHOLE_KEY  (~(key_part_map)0)
398
410
 
399
411
        /* Intern constants in databases */
400
412
 
468
480
{
469
481
  const byte *key;
470
482
  uint length;
 
483
  key_part_map keypart_map;
471
484
  enum ha_rkey_function flag;
472
485
} key_range;
473
486