Hi,
We are using a macro wrapper to Bind Where Parameter function.
#define bindWhereClause(fieldName, fieldDataType, fieldData) _bindWhereClause(fieldName, fieldDataType, sizeof(fieldData), &fieldData)
void _bindWhereClause(const char *name, int dataType, int dataSize, void *data)
{
// Implementation
}
Database.bindWhereClause( "FIRST_NAME", SQL_VARCHAR, name.getFirstName());
When I tried to call the macro with a function as parameter (as above) I am getting the error message "error: non-lvalue in unary `&'".
I am able to call the macro with normal variables like
Database.bindWhereClause( "FIRST_NAME", SQL_VARCHAR, firstName);
How to resolve this? Do I need to use inline functions instead of macro?
Appreciate your help in advance.
Thanks, Mathew Liju