~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/rem0cmp.ic

  • Committer: Brian Aker
  • Date: 2008-10-28 08:36:02 UTC
  • mfrom: (520.4.13 merge-innodb-plugin)
  • Revision ID: brian@tangent.org-20081028083602-0p3zzlhlxr5q2sqo
Merging Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                                less than data2, respectively */
18
18
        ulint           mtype,  /* in: main type */
19
19
        ulint           prtype, /* in: precise type */
20
 
        byte*           data1,  /* in: data field (== a pointer to a memory
 
20
        const byte*     data1,  /* in: data field (== a pointer to a memory
21
21
                                buffer) */
22
22
        ulint           len1,   /* in: data field length or UNIV_SQL_NULL */
23
 
        byte*           data2,  /* in: data field (== a pointer to a memory
 
23
        const byte*     data2,  /* in: data field (== a pointer to a memory
24
24
                                buffer) */
25
25
        ulint           len2)   /* in: data field length or UNIV_SQL_NULL */
26
26
{
36
36
/*==============*/
37
37
                                /* out: 1, 0, -1, if dfield1 is greater, equal,
38
38
                                less than dfield2, respectively */
39
 
        dfield_t*       dfield1,/* in: data field; must have type field set */
40
 
        dfield_t*       dfield2)/* in: data field */
 
39
        const dfield_t* dfield1,/* in: data field; must have type field set */
 
40
        const dfield_t* dfield2)/* in: data field */
41
41
{
42
42
        const dtype_t*  type;
43
43
 
46
46
        type = dfield_get_type(dfield1);
47
47
 
48
48
        return(cmp_data_data(type->mtype, type->prtype,
49
 
                             dfield_get_data(dfield1),
 
49
                             (const byte*) dfield_get_data(dfield1),
50
50
                             dfield_get_len(dfield1),
51
 
                             dfield_get_data(dfield2),
 
51
                             (const byte*) dfield_get_data(dfield2),
52
52
                             dfield_get_len(dfield2)));
53
53
}
54
54
 
62
62
                                /* out: 1, 0 , -1 if rec1 is greater, equal,
63
63
                                less, respectively, than rec2; only the common
64
64
                                first fields are compared */
65
 
        rec_t*          rec1,   /* in: physical record */
66
 
        rec_t*          rec2,   /* in: physical record */
 
65
        const rec_t*    rec1,   /* in: physical record */
 
66
        const rec_t*    rec2,   /* in: physical record */
67
67
        const ulint*    offsets1,/* in: rec_get_offsets(rec1, index) */
68
68
        const ulint*    offsets2,/* in: rec_get_offsets(rec2, index) */
69
69
        dict_index_t*   index)  /* in: data dictionary index */