Changeset: 5e5d2978fe63 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5e5d2978fe63
Modified Files:
clients/mapiclient/mclient.c
Branch: default
Log Message:
Copy-paste error.
diffs (36 lines):
diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -1679,24 +1679,24 @@ setFormatter(const char *s)
noquote = true;
formatter = CSVformatter;
separator = strdup(",");
- } else if (strncmp(s, "csv-noquote=", 4) == 0) {
+ } else if (strncmp(s, "csv-noquote=", 12) == 0) {
noquote = true;
formatter = CSVformatter;
- if (s[4] == '"') {
- separator = strdup(s + 5);
+ if (s[12] == '"') {
+ separator = strdup(s + 13);
if (separator[strlen(separator) - 1] == '"')
separator[strlen(separator) - 1] = 0;
} else
- separator = strdup(s + 4);
- } else if (strncmp(s, "csv-noquote+", 4) == 0) {
+ separator = strdup(s + 12);
+ } else if (strncmp(s, "csv-noquote+", 12) == 0) {
noquote = true;
formatter = CSVformatter;
- if (s[4] == '"') {
- separator = strdup(s + 5);
+ if (s[12] == '"') {
+ separator = strdup(s + 13);
if (separator[strlen(separator) - 1] == '"')
separator[strlen(separator) - 1] = 0;
} else
- separator = strdup(s + 4);
+ separator = strdup(s + 12);
csvheader = true;
} else if (strcmp(s, "tab") == 0) {
formatter = CSVformatter;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list