diff options
author | unknown <sergefp@mysql.com> | 2004-06-14 11:18:56 +0400 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2004-06-14 11:18:56 +0400 |
commit | d554ef09910724af80761ca956ba5e2726668169 (patch) | |
tree | cb100affefa471904e7555d307bab15072bae4f6 /sql/ha_heap.h | |
parent | 2163546955bf3ecd70080b06b20ac4076559473e (diff) | |
parent | cb3848b91545e494af32dab6744e2dc59bde98bf (diff) | |
download | mariadb-git-d554ef09910724af80761ca956ba5e2726668169.tar.gz |
Manual merge
include/my_base.h:
Auto merged
include/my_bitmap.h:
Auto merged
include/my_sys.h:
Auto merged
innobase/include/row0mysql.h:
Auto merged
innobase/row/row0sel.c:
Auto merged
mysys/my_bitmap.c:
Auto merged
sql/ha_berkeley.cc:
Auto merged
sql/ha_berkeley.h:
Auto merged
sql/ha_heap.h:
Auto merged
sql/ha_innodb.cc:
Auto merged
sql/ha_innodb.h:
Auto merged
sql/handler.h:
Auto merged
sql/opt_range.cc:
Auto merged
sql/opt_range.h:
Auto merged
sql/sql_select.h:
Auto merged
Diffstat (limited to 'sql/ha_heap.h')
-rw-r--r-- | sql/ha_heap.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/ha_heap.h b/sql/ha_heap.h index f55eda91149..ebca52265b0 100644 --- a/sql/ha_heap.h +++ b/sql/ha_heap.h @@ -94,5 +94,10 @@ class ha_heap: public handler THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); - + int cmp_ref(const byte *ref1, const byte *ref2) + { + HEAP_PTR ptr1=*(HEAP_PTR*)ref1; + HEAP_PTR ptr2=*(HEAP_PTR*)ref2; + return ptr1 < ptr2? -1 : (ptr1 > ptr2? 1 : 0); + } }; |