fix for fixed text files

made it so memo fields get quoted in mdb-export.c
This commit is contained in:
brianb 2000-03-16 11:29:03 +00:00
parent 9551d017a8
commit e469aed2d7
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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]);