mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-07-15 23:02:34 +08:00
fix for fixed text files
made it so memo fields get quoted in mdb-export.c
This commit is contained in:
parent
9551d017a8
commit
e469aed2d7
@ -112,7 +112,7 @@ int bitmask_sz;
|
|||||||
mdb_col_to_string(mdb,
|
mdb_col_to_string(mdb,
|
||||||
row_start + col_start,
|
row_start + col_start,
|
||||||
col->col_type,
|
col->col_type,
|
||||||
0)
|
col->col_size)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
#if MDB_DEBUG
|
#if MDB_DEBUG
|
||||||
|
@ -70,7 +70,9 @@ char quote_text = 1;
|
|||||||
fprintf(stdout,"%s",bound_values[0]);
|
fprintf(stdout,"%s",bound_values[0]);
|
||||||
for (j=1;j<table->num_cols;j++) {
|
for (j=1;j<table->num_cols;j++) {
|
||||||
col=g_ptr_array_index(table->columns,j);
|
col=g_ptr_array_index(table->columns,j);
|
||||||
if (quote_text && col->col_type==MDB_TEXT) {
|
if (quote_text &&
|
||||||
|
(col->col_type==MDB_TEXT ||
|
||||||
|
col->col_type==MDB_MEMO)) {
|
||||||
fprintf(stdout,"%s\"%s\"",delimiter,bound_values[j]);
|
fprintf(stdout,"%s\"%s\"",delimiter,bound_values[j]);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stdout,"%s%s",delimiter,bound_values[j]);
|
fprintf(stdout,"%s%s",delimiter,bound_values[j]);
|
||||||
|
Loading…
Reference in New Issue
Block a user