You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When skipping columns (returning READSTAT_HANDLER_SKIP_VARIABLE from my variable handler function for certain variables) and then recovering the index after skipping with readstat_variable_get_index_after_skipping from my value handler function, the index after skipping does not look right in the case of XPT files.
It seems to me that in the function xport_process_row in readstat_xport_read.c this case is not handled.
I replaced lines 565-568 by this (copied from readstat_por_read.c line 629), and it seems to solve the issue:
if (ctx->handle.value && !ctx->variables[i]->skip) {
if (ctx->handle.value(ctx->parsed_row_count, variable, value, ctx->user_ctx) != READSTAT_HANDLER_OK) {
retval = READSTAT_ERROR_USER_ABORT;
goto cleanup;
}
}
Any chance to get this corrected into the code?
thanks!
The text was updated successfully, but these errors were encountered:
When skipping columns (returning READSTAT_HANDLER_SKIP_VARIABLE from my variable handler function for certain variables) and then recovering the index after skipping with readstat_variable_get_index_after_skipping from my value handler function, the index after skipping does not look right in the case of XPT files.
It seems to me that in the function xport_process_row in readstat_xport_read.c this case is not handled.
I replaced lines 565-568 by this (copied from readstat_por_read.c line 629), and it seems to solve the issue:
Any chance to get this corrected into the code?
thanks!
The text was updated successfully, but these errors were encountered: