Fix UPSERT bug on camelCase PK column

This commit is contained in:
steve-chavez
2018-05-31 11:57:42 -05:00
committed by Steve Chávez
parent 9ea7529f30
commit 37e7398a85
6 changed files with 39 additions and 1 deletions
+3
View File
@@ -411,3 +411,6 @@ INSERT INTO zone VALUES (4, 'store 4', 3, 1);
-- for foreign table projects_dump
copy (select id, name, client_id from projects) to '/tmp/projects_dump.csv' with csv;
TRUNCATE TABLE "UnitTest" CASCADE;
INSERT INTO "UnitTest" VALUES (1, 'unit test 1');
+1
View File
@@ -79,6 +79,7 @@ GRANT ALL ON TABLE
, space
, zone
, projects_dump
, "UnitTest"
TO postgrest_test_anonymous;
GRANT INSERT ON TABLE insertonly TO postgrest_test_anonymous;
+5
View File
@@ -1451,3 +1451,8 @@ comment on foreign table projects_dump is
$$A temporary projects dump
Just a test for foreign tables$$;
create table "UnitTest"(
"idUnitTest" integer primary key,
"nameUnitTest" text
);