void getX( UDT_HANDLE *pointUdt,
INTEGER *result,
char sqlstate[6])
{
INTEGER x;
int nullIndicator;
int length;
/* Get the x attribute of pointUdt. */
FNC_GetStructuredAttribute(*pointUdt, "x", &x, SIZEOF_INTEGER,
&nullIndicator, &length);
if (nullIndicator == -1) {
/* do null handling here */
...
return;
}
...
}