~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/row0mysql.h

  • Committer: Grant Limberg
  • Date: 2008-08-12 21:13:01 UTC
  • mto: (322.1.1 codestyle)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: grant@glsoftware.net-20080812211301-ym3wsowelkgp16s2
renamed all instances of MYSQL_ to DRIZZLE_

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        ulint   rec_field_no;           /* field number of the column in an
476
476
                                        Innobase record in the current index;
477
477
                                        not defined if template_type is
478
 
                                        ROW_MYSQL_WHOLE_ROW */
 
478
                                        ROW_DRIZZLE_WHOLE_ROW */
479
479
        ulint   mysql_col_offset;       /* offset of the column in the MySQL
480
480
                                        row format */
481
481
        ulint   mysql_col_len;          /* length of the column in the MySQL
489
489
        ulint   mysql_type;             /* MySQL type code; this is always
490
490
                                        < 256 */
491
491
        ulint   mysql_length_bytes;     /* if mysql_type
492
 
                                        == DATA_MYSQL_TRUE_VARCHAR, this tells
 
492
                                        == DATA_DRIZZLE_TRUE_VARCHAR, this tells
493
493
                                        whether we should use 1 or 2 bytes to
494
494
                                        store the MySQL true VARCHAR data
495
495
                                        length at the start of row in the MySQL
507
507
                                        it is an unsigned integer type */
508
508
};
509
509
 
510
 
#define MYSQL_FETCH_CACHE_SIZE          8
 
510
#define DRIZZLE_FETCH_CACHE_SIZE                8
511
511
/* After fetching this many rows, we start caching them in fetch_cache */
512
 
#define MYSQL_FETCH_CACHE_THRESHOLD     4
 
512
#define DRIZZLE_FETCH_CACHE_THRESHOLD   4
513
513
 
514
514
#define ROW_PREBUILT_ALLOCATED  78540783
515
515
#define ROW_PREBUILT_FREED      26423527
557
557
                                        unique search from a clustered index,
558
558
                                        because HANDLER allows NEXT and PREV
559
559
                                        in such a situation */
560
 
        ulint           template_type;  /* ROW_MYSQL_WHOLE_ROW,
561
 
                                        ROW_MYSQL_REC_FIELDS,
562
 
                                        ROW_MYSQL_DUMMY_TEMPLATE, or
563
 
                                        ROW_MYSQL_NO_TEMPLATE */
 
560
        ulint           template_type;  /* ROW_DRIZZLE_WHOLE_ROW,
 
561
                                        ROW_DRIZZLE_REC_FIELDS,
 
562
                                        ROW_DRIZZLE_DUMMY_TEMPLATE, or
 
563
                                        ROW_DRIZZLE_NO_TEMPLATE */
564
564
        ulint           n_template;     /* number of elements in the
565
565
                                        template */
566
566
        ulint           null_bitmap_len;/* number of bytes in the SQL NULL
653
653
        ulint           n_rows_fetched; /* number of rows fetched after
654
654
                                        positioning the current cursor */
655
655
        ulint           fetch_direction;/* ROW_SEL_NEXT or ROW_SEL_PREV */
656
 
        byte*           fetch_cache[MYSQL_FETCH_CACHE_SIZE];
 
656
        byte*           fetch_cache[DRIZZLE_FETCH_CACHE_SIZE];
657
657
                                        /* a cache for fetched rows if we
658
658
                                        fetch many rows from the same cursor:
659
659
                                        it saves CPU time to fetch them in a
689
689
 
690
690
#define ROW_PREBUILT_FETCH_MAGIC_N      465765687
691
691
 
692
 
#define ROW_MYSQL_WHOLE_ROW     0
693
 
#define ROW_MYSQL_REC_FIELDS    1
694
 
#define ROW_MYSQL_NO_TEMPLATE   2
695
 
#define ROW_MYSQL_DUMMY_TEMPLATE 3      /* dummy template used in
 
692
#define ROW_DRIZZLE_WHOLE_ROW   0
 
693
#define ROW_DRIZZLE_REC_FIELDS  1
 
694
#define ROW_DRIZZLE_NO_TEMPLATE 2
 
695
#define ROW_DRIZZLE_DUMMY_TEMPLATE 3    /* dummy template used in
696
696
                                        row_scan_and_check_index */
697
697
 
698
698
/* Values for hint_need_to_fetch_extra_cols */