예제 #1
0
int dbSelection::exactKeyCmp(void const* a, void const* b) 
{
    dbGetTie ta, tb;
    dbSortContext* ctx = sortThreadContext.get();
    return compare(ctx->db->getRow(ta, ((dbSortRecord*)a)->oid),
		   ctx->db->getRow(tb, ((dbSortRecord*)b)->oid),
		   ctx->order);				
}
예제 #2
0
 static int compare(ObjectRef* a, ObjectRef* b) { 
     dbSortContext* ctx = sortThreadContext.get();
     return dbSelection::compare(a->oid, b->oid, ctx->order);
 }
예제 #3
0
static int compareRecords(void const* a, void const* b)
{
    dbSortContext* ctx = sortThreadContext.get();
    return dbSelection::compare(*(oid_t*)a, *(oid_t*)b, ctx->order);
}