Example: SelValidate for variant_row - copy the the BoundIO null
data flags to the variant row null flag fields.
template<> class DefaultSelValidate<variant_row> {
public:
bool operator()(BoundIOs &boundIOs, variant_row &rowbuf)
{
rowbuf.ClearNulls();
for (BoundIOs::iterator b_it = boundIOs.begin();
b_it != boundIOs.end(); b_it++)
{
BoundIO &boundIO = (*b_it).second;
if ((boundIO.IsColumn() || boundIO.GetParamType() == SQL_PARAM_OUTPUT || boundIO.GetParamType() == SQL_PARAM_INPUT_OUTPUT)
&& boundIO.IsNull())
rowbuf.SetNull(boundIO.GetName());
}
return true;
}
};