summaryrefslogtreecommitdiff
path: root/sql/ha_heap.h
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2004-05-13 01:49:47 +0400
committersergefp@mysql.com <>2004-05-13 01:49:47 +0400
commit3b29cad05c71dc28692a051fb28085d5a5484d8e (patch)
treec476a92e4fdd992d29c2236102f35fd64e43857f /sql/ha_heap.h
parent654bf99b94be51126424c7dce1bc07f1840aff83 (diff)
parenta46d7542c94eb5848231324a043ddccffbc552b0 (diff)
downloadmariadb-git-3b29cad05c71dc28692a051fb28085d5a5484d8e.tar.gz
Manual merge
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 feadc0c3c0f..47e125ed95d 100644
--- a/sql/ha_heap.h
+++ b/sql/ha_heap.h
@@ -95,5 +95,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);
+ }
};