~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/innobase/include/data0data.h

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-10-29 15:43:40 UTC
  • mfrom: (1.2.12) (2.1.19 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029154340-2gp39el6cv8bwf2o
Tags: 1:7.2.3-2ubuntu1
* Merge from debian, remaining changes:
  - Link against boost_system because of boost_thread.
  - Add required libs to message/include.am
  - Add upstart job and adjust init script to be upstart compatible.
  - Disable -floop-parallelize-all due to gcc-4.8/4.9 compiler ICE
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57732

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        dfield_t*       field,  /*!< in/out: data field */
156
156
        mem_heap_t*     heap);  /*!< in: memory heap where allocated */
157
157
/*********************************************************************//**
158
 
Tests if data length and content is equal for two dfields.
159
 
@return TRUE if equal */
 
158
Tests if two data fields are equal.
 
159
If len==0, tests the data length and content for equality.
 
160
If len>0, tests the first len bytes of the content for equality.
 
161
@return TRUE if both fields are NULL or if they are equal */
160
162
UNIV_INLINE
161
163
ibool
162
164
dfield_datas_are_binary_equal(
163
165
/*==========================*/
164
166
        const dfield_t* field1, /*!< in: field */
165
 
        const dfield_t* field2);/*!< in: field */
 
167
        const dfield_t* field2, /*!< in: field */
 
168
        ulint           len)    /*!< in: maximum prefix to compare,
 
169
                                or 0 to compare the whole field length */
 
170
        __attribute__((nonnull, warn_unused_result));
166
171
/*********************************************************************//**
167
172
Tests if dfield data length and content is equal to the given.
168
173
@return TRUE if equal */