From cac3f7aca5cda5d43811744c2ce558240effc15a Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Wed, 5 Aug 2020 18:27:48 -0400 Subject: [PATCH] Default to single quotes when exporting to Postgres See: brianb/mdbtools#119 brianb/mdbtools#128 --- src/util/mdb-export.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/mdb-export.c b/src/util/mdb-export.c index 58ac948..4f905a9 100755 --- a/src/util/mdb-export.c +++ b/src/util/mdb-export.c @@ -138,7 +138,9 @@ main(int argc, char **argv) /* Process options */ if (quote_char) quote_char = escapes(quote_char); - else + else if (insert_dialect && !strcmp(insert_dialect, "postgres")) + quote_char = g_strdup("'"); + else quote_char = g_strdup("\""); if (delimiter)