PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ DBFIsAttributeNULL()

int SHPAPI_CALL DBFIsAttributeNULL ( DBFHandle  psDBF,
int  iRecord,
int  iField 
)

Definition at line 1171 of file dbfopen.c.

References DBFIsValueNULL(), DBFReadStringAttribute(), SHPAPI_CALL, and TRUE.

Referenced by ShpLoaderGenerateSQLRowStatement().

1173 {
1174  const char *pszValue;
1175 
1176  pszValue = DBFReadStringAttribute( psDBF, iRecord, iField );
1177 
1178  if( pszValue == NULL )
1179  return TRUE;
1180 
1181  return DBFIsValueNULL( psDBF->pachFieldType[iField], pszValue );
1182 }
const char SHPAPI_CALL1 * DBFReadStringAttribute(DBFHandle psDBF, int iRecord, int iField){ return((const char *) DBFReadAttribute(psDBF, iRecord, iField, 'C')
static int DBFIsValueNULL(char chType, const char *pszValue)
Definition: dbfopen.c:1111
#define TRUE
Definition: dbfopen.c:169
Here is the call graph for this function:
Here is the caller graph for this function: