Reference/es_mbb_i32_v
Syntax
int es_mbb_i32_v( struct es_mbb *fb, const char *fieldname, uint32_t *pvar );
Arguments
struct es_mbb *fb |
Field-binding collection. |
const char *fieldname |
Database field name. |
uint32_t *pvar |
Reference to 32bit integer program variable. |
Return Codes
ES_ERROR_NONE |
Success. No errors. |
ES_ERROR_INVALIDFIELDTYPE |
Database field is not a 32bit integer (ES_FLDTYPE_I32 ). |
ES_ERROR_UNKNOWNFIELD |
Unknown database field in this class. |
Description
Bind by value the 32bit integer program variable referenced by pvar with the database field fieldname . The field-binding fb must have been previously constructed via es_mbb_new().
Binding by value means that the value referenced by pvar (i.e. *pvar ) is copied to the database during an insert/update operation and fieldname 's value is copied to *pvar during a fetch operation.
Index fields (which must be integers) must be bound by value for use in index look-up operations such as es_mbi_findfetch(), es_mbi_findupdate() and es_mbi_findremoveidx().
[Back To Reference]
[Back To Reference/es_mbb]
|