From 51406680677447a1a47811be6e8f9db5a1a0d8a5 Mon Sep 17 00:00:00 2001 From: Jason Hopper Date: Wed, 7 Aug 2024 15:51:02 -0300 Subject: [PATCH] escaping quote character for data export --- scripts/make_bulk_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make_bulk_data.sh b/scripts/make_bulk_data.sh index 94339beaec..2e206c773d 100755 --- a/scripts/make_bulk_data.sh +++ b/scripts/make_bulk_data.sh @@ -337,7 +337,7 @@ echo "Streaming ${lst[0]} to S3" psql \ --command \ "set statement_timeout to 0; - COPY ${lst[0]} ${lst[1]} TO STDOUT WITH (FORMAT csv, ENCODING utf8, HEADER, QUOTE '`', FORCE_QUOTE *)" \ + COPY ${lst[0]} ${lst[1]} TO STDOUT WITH (FORMAT csv, ENCODING utf8, HEADER, QUOTE \"\`\", FORCE_QUOTE *)" \ --quiet \ --host "$DB_HOST" \ --username "$DB_USER" \