~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/base.h

  • Committer: Brian Aker
  • Date: 2008-08-01 18:37:54 UTC
  • Revision ID: brian@tangent.org-20080801183754-dbzw8x5r5e64py13
Random cleanup in base.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
#define HA_PACK_KEY              2      /* Pack string key to previous key */
231
231
#define HA_AUTO_KEY              16
232
232
#define HA_BINARY_PACK_KEY       32     /* Packing of all keys to prev key */
233
 
#define HA_FULLTEXT             128     /* For full-text search */
234
233
#define HA_UNIQUE_CHECK         256     /* Check the key for uniqueness */
235
 
#define HA_SPATIAL              1024    /* For spatial search */
236
234
#define HA_NULL_ARE_EQUAL       2048    /* NULL in key are cmp as equal */
237
235
#define HA_GENERATED_KEY        8192    /* Automaticly generated key */
238
236
 
239
237
        /* The combination of the above can be used for key type comparison. */
240
238
#define HA_KEYFLAG_MASK (HA_NOSAME | HA_PACK_KEY | HA_AUTO_KEY | \
241
 
                         HA_BINARY_PACK_KEY | HA_FULLTEXT | HA_UNIQUE_CHECK | \
242
 
                         HA_SPATIAL | HA_NULL_ARE_EQUAL | HA_GENERATED_KEY)
 
239
                         HA_BINARY_PACK_KEY | HA_UNIQUE_CHECK | \
 
240
                         HA_NULL_ARE_EQUAL | HA_GENERATED_KEY)
243
241
 
244
242
#define HA_KEY_HAS_PART_KEY_SEG 65536   /* Key contains partial segments */
245
243
 
249
247
#define HA_VAR_LENGTH_KEY        8
250
248
#define HA_NULL_PART_KEY         64
251
249
#define HA_USES_COMMENT          4096
252
 
#define HA_USES_PARSER           16384  /* Fulltext index uses [pre]parser */
253
250
#define HA_USES_BLOCK_SIZE       ((uint) 32768)
254
251
#define HA_SORT_ALLOWS_SAME      512    /* Intern bit when sorting records */
255
252
 
523
520
*/
524
521
#define NULL_RANGE      64
525
522
 
526
 
#define GEOM_FLAG      128
527
 
 
528
 
/* Deprecated, currently used only by NDB at row retrieval */
529
 
#define SKIP_RANGE     256
530
 
 
531
523
typedef struct st_key_range
532
524
{
533
525
  const uchar *key;
546
538
 
547
539
 
548
540
/* For number of records */
549
 
#ifdef BIG_TABLES
 
541
typedef uint64_t        ha_rows;
550
542
#define rows2double(A)  uint64_t2double(A)
551
 
typedef my_off_t        ha_rows;
552
 
#else
553
 
#define rows2double(A)  (double) (A)
554
 
typedef ulong           ha_rows;
555
 
#endif
556
543
 
557
544
#define HA_POS_ERROR    (~ (ha_rows) 0)
558
545
#define HA_OFFSET_ERROR (~ (my_off_t) 0)