SPI_modifytuple

Name

SPI_modifytuple --  Modifies tuple of relation ��졼�������Υ��ץ���ѹ����ޤ���

Synopsis

SPI_modifytuple(rel, tuple , nattrs
, attnum , Values , Nulls)

����

Relation rel

HeapTuple tuple

Input tuple to be modified

�ѹ��оݤΥ��ץ롣

int nattrs

Number of attribute numbers in attnum

���� attnum ���°���ֹ�ο���

int * attnum

Array of numbers of the attributes which are to be changed

�ѹ��оݤ�°���ֹ������

Datum * Values

New values for the attributes specified

����°�����ѹ�����͡�

char * Nulls

Which attributes are NULL, if any

�ɤ�°����NULL�������뤫��

����

HeapTuple

New tuple with modifications

�ѹ����줿���������ץ롣

non-NULL if tuple is not NULL and the modify was successful
non-NULL ���� tuple �� NULL �� �ʤ������ġ��ѹ�������������硣
NULL only if tuple is NULL ���� tuple �� NULL �� ���Τߡ�

SPI_result

SPI_ERROR_ARGUMENT if rel is NULL or tuple is NULL or natts ≤ 0 or attnum is NULL or Values is NULL.
SPI_ERROR_ARGUMENT ���� rel��tuple��attnum��Values �Τ����줫�� NULL ���ޤ��ϡ����� natts ≤ 0 �ξ�硣
SPI_ERROR_NOATTRIBUTE if there is an invalid attribute number in attnum (attnum ≤ 0 or > number of attributes in tuple)
SPI_ERROR_NOATTRIBUTE ���� arrnum ���̵����°���ֹ椬������� attnum le; 0 �ޤ��ϡ�> ���� �����°�����ξ���

����

SPI_modifytuple Modifies a tuple in upper Executor context. See the section on Memory Management.

SPI_modifytuple �Ͼ�̥��������塼���Υ���ƥ� ������Υ��ץ���ѹ����ޤ�����������ι�򻲾Ȥ��Ʋ�������

�Ȥ���

If successful, a pointer to the new tuple is returned. The new tuple is allocated in upper Executor context (see Memory management). Passed tuple is not changed.

��������ȡ����������ץ�򼨤��ݥ��󥿤��֤���ޤ������������ץ�Ͼ�� ���������塼���Υ���ƥ����Ȥ˳�����Ƥ��Ƥ��ޤ����ʥ�������ι�� ���Ȥ��Ʋ��������˸��Υ��ץ���ѹ�����ޤ���