mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
bug #1398003. Sanitize column names when -S is given without -I
This commit is contained in:
parent
2d098cd9e9
commit
5f6fc1cb9f
@ -174,11 +174,11 @@ main(int argc, char **argv)
|
||||
}
|
||||
if (header_row) {
|
||||
col=g_ptr_array_index(table->columns,0);
|
||||
fprintf(stdout,"%s",col->name);
|
||||
fprintf(stdout,"%s",sanitize_name(col->name,sanitize));
|
||||
for (j=1;j<table->num_cols;j++) {
|
||||
col=g_ptr_array_index(table->columns,j);
|
||||
fprintf(stdout,delimiter);
|
||||
fprintf(stdout,"%s",col->name);
|
||||
fprintf(stdout,"%s",sanitize_name(col->name,sanitize));
|
||||
}
|
||||
fprintf(stdout,"\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user