~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/base.h

  • Committer: Monty Taylor
  • Date: 2010-02-11 01:35:55 UTC
  • mfrom: (1289 staging)
  • mto: This revision was merged to the branch mainline in revision 1293.
  • Revision ID: mordred@inaugust.com-20100211013555-f9okqsgi91mwm4xu
Merged up with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#ifndef DRIZZLED_BASE_H
29
29
#define DRIZZLED_BASE_H
30
30
 
 
31
namespace drizzled
 
32
{
 
33
 
31
34
/* The following is bits in the flag parameter to ha_open() */
32
35
 
33
36
#define HA_OPEN_ABORT_IF_LOCKED         0       /* default */
503
506
typedef uint64_t        ha_rows;
504
507
#define rows2double(A)  uint64_t2double(A)
505
508
 
506
 
#define HA_POS_ERROR    (~ (ha_rows) 0)
507
 
#define HA_OFFSET_ERROR (~ (my_off_t) 0)
 
509
#define HA_POS_ERROR    (~ (::drizzled::ha_rows) 0)
 
510
#define HA_OFFSET_ERROR (~ (::drizzled::internal::my_off_t) 0)
508
511
 
509
512
#if SIZEOF_OFF_T == 4
510
513
#define MAX_FILE_SIZE   INT32_MAX
514
517
 
515
518
#define HA_VARCHAR_PACKLENGTH(field_length) ((field_length) < 256 ? 1 :2)
516
519
 
 
520
} /* namespace drizzled */
 
521
 
517
522
#endif /* DRIZZLED_BASE_H */