From 0dd3c03ec1c5fea0e8b1b973dd46de996d4d0c74 Mon Sep 17 00:00:00 2001 From: Chenglim Ear Date: Wed, 1 Nov 2023 13:45:17 -0700 Subject: [PATCH] try sending csv file through stdin for csvsql --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 002a3f31c..41e456450 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,7 +81,7 @@ jobs: echo "c1,c2" > test.csv echo "a,b" >> test.csv cat test.csv - csvsql -v --doublequote --db postgresql:///disclosure-backend --insert test.csv + csvsql -v --doublequote --db postgresql:///disclosure-backend --insert < test.csv echo "List tables" psql -c "SELECT * FROM pg_catalog.pg_tables WHERE schemaname != 'pg_catalog' AND schemaname != 'information_schema';"