~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_base.h

MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
  HA_EXTRA_IGNORE_NO_KEY,
160
160
  HA_EXTRA_NO_IGNORE_NO_KEY,
161
161
  /*
162
 
    Mark the table as a log table. For some handlers (e.g. CSV) this results
163
 
    in a special locking for the table.
164
 
  */
165
 
  HA_EXTRA_MARK_AS_LOG_TABLE,
166
 
  /*
167
162
    Informs handler that write_row() which tries to insert new row into the
168
163
    table and encounters some already existing row with same primary/unique
169
164
    key can replace old row with new row instead of reporting error (basically
552
547
 
553
548
/* For number of records */
554
549
#ifdef BIG_TABLES
555
 
#define rows2double(A)  ulonglong2double(A)
 
550
#define rows2double(A)  uint64_t2double(A)
556
551
typedef my_off_t        ha_rows;
557
552
#else
558
553
#define rows2double(A)  (double) (A)
563
558
#define HA_OFFSET_ERROR (~ (my_off_t) 0)
564
559
 
565
560
#if SIZEOF_OFF_T == 4
566
 
#define MAX_FILE_SIZE   INT_MAX32
 
561
#define MAX_FILE_SIZE   INT32_MAX
567
562
#else
568
 
#define MAX_FILE_SIZE   LONGLONG_MAX
 
563
#define MAX_FILE_SIZE   INT64_MAX
569
564
#endif
570
565
 
571
566
#define HA_VARCHAR_PACKLENGTH(field_length) ((field_length) < 256 ? 1 :2)