Default to single quotes when exporting to Postgres

See:

brianb/mdbtools#119
brianb/mdbtools#128
This commit is contained in:
Evan Miller 2020-08-05 18:27:48 -04:00
parent aecee0e594
commit cac3f7aca5

View File

@ -138,6 +138,8 @@ main(int argc, char **argv)
/* Process options */ /* Process options */
if (quote_char) if (quote_char)
quote_char = escapes(quote_char); quote_char = escapes(quote_char);
else if (insert_dialect && !strcmp(insert_dialect, "postgres"))
quote_char = g_strdup("'");
else else
quote_char = g_strdup("\""); quote_char = g_strdup("\"");