~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/rem/rem0cmp.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
862
862
        const ulint*    offsets1,/*!< in: rec_get_offsets(rec1, index) */
863
863
        const ulint*    offsets2,/*!< in: rec_get_offsets(rec2, index) */
864
864
        dict_index_t*   index,  /*!< in: data dictionary index */
 
865
        ibool           nulls_unequal,
 
866
                                /* in: TRUE if this is for index statistics
 
867
                                cardinality estimation, and innodb_stats_method
 
868
                                is "nulls_unequal" or "nulls_ignored" */
865
869
        ulint*          matched_fields, /*!< in/out: number of already completely
866
870
                                matched fields; when the function returns,
867
871
                                contains the value the for current
961
965
                            || rec2_f_len == UNIV_SQL_NULL) {
962
966
 
963
967
                                if (rec1_f_len == rec2_f_len) {
964
 
 
965
 
                                        goto next_field;
966
 
 
 
968
                                        /* This is limited to stats collection,
 
969
                                        cannot use it for regular search */
 
970
                                        if (nulls_unequal) {
 
971
                                                ret = -1;
 
972
                                        } else {
 
973
                                                goto next_field;
 
974
                                        }
967
975
                                } else if (rec2_f_len == UNIV_SQL_NULL) {
968
976
 
969
977
                                        /* We define the SQL null to be the