summaryrefslogtreecommitdiff
path: root/sql/ha_heap.h
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2004-06-14 11:18:56 +0400
committerunknown <sergefp@mysql.com>2004-06-14 11:18:56 +0400
commitd554ef09910724af80761ca956ba5e2726668169 (patch)
treecb100affefa471904e7555d307bab15072bae4f6 /sql/ha_heap.h
parent2163546955bf3ecd70080b06b20ac4076559473e (diff)
parentcb3848b91545e494af32dab6744e2dc59bde98bf (diff)
downloadmariadb-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.h7
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);
+ }
};