Skip to content

Commit e5fbf16

Browse files
committed
fix!: also take into account file character encoding override when reading data
1 parent 636cc8d commit e5fbf16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/duckdb_read_stat.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,11 @@ void duckdb_read_stat_function(duckdb_function_info info, duckdb_data_chunk outp
461461
context->data_chunk = output;
462462
context->error_message = NULL;
463463

464+
if (bind_data->encoding != NULL)
465+
{
466+
readstat_set_file_character_encoding(parser, bind_data->encoding);
467+
}
468+
464469
if (bind_data->format != NULL)
465470
{
466471
if (!strcasecmp(bind_data->format, "sas7bdat"))

0 commit comments

Comments
 (0)