Datum d;boolisnull; ExecStoreTuple(tup, slot, InvalidBuffer,false); d = slot_getattr(slot, BROKER_ATTR_HOST, &isnull); host = TextDatumGetCString(d); result = lappend(result, host); } ExecDropSingleTupleTableSlot(slot); heap_endscan(scan); heap_close(brokers, NoLock);returnresult; }...
*/staticbooltuple_equals_slot(TupleDesc desc, HeapTuple tup, TupleTableSlot *slot){ Datum values[MaxTupleAttributeNumber];boolisnull[MaxTupleAttributeNumber];intattrnum; Form_pg_attribute att;heap_deform_tuple(tup, desc, values, isnull);/* Check equality of the attributes. */for(attrnum =0...
Datum d;boolisnull; ExecStoreTuple(tup, slot, InvalidBuffer,false); d = slot_getattr(slot, BROKER_ATTR_HOST, &isnull); host = TextDatumGetCString(d); result = lappend(result, host); } ExecDropSingleTupleTableSlot(slot);heap_endscan(scan); heap_close(brokers, NoLock);returnresult; } ...
ExecStoreTuple(tup, slot, InvalidBuffer,false); d = slot_getattr(slot, BROKER_ATTR_HOST, &isnull); host = TextDatumGetCString(d); result = lappend(result, host); } ExecDropSingleTupleTableSlot(slot); heap_endscan(scan); heap_close(brokers, NoLock);returnresult; } 开发者ID:huiyuanlu,...
示例4: tuplestore_gettupleslot ▲点赞 1▼ /* * tuplestore_gettupleslot - exported function to fetch a tuple into a slot * * If successful, put tuple in slot and return TRUE; else, clear the slot * and return FALSE. * * If copy is TRUE, the slot receives a copied tuple (allocat...
values[i++] = NameGetDatum(&rname);/* rulename */values[i++] = ObjectIdGetDatum(eventrel_oid);/* ev_class */values[i++] = Int16GetDatum(evslot_index);/* ev_attr */values[i++] = CharGetDatum(evtype +'0');/* ev_type */values[i++] = CharGetDatum(RULE_FIRES_ON_ORIG...
outerslot = ExecProcNode(outerNode);if(TupIsNull(outerslot)) { node->eof_underlying =true;returnNULL;//...这里部分代码省略... 开发者ID:jaiminpan,项目名称:bizgres,代码行数:101,代码来源:nodeMaterial.c 示例12: AlterLanguageOwner_internal ▲点赞 1▼ /* ...