Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up`KeyError` on transactions with foreign keys #1137
Comments
|
This works:
But this does not:
I think the issue is that if you create a transaction query with two tables and a foreign key relationship between them, you get a |
Description
Running pgcli version 2.2.0, installed through nix:
The postgres server is version
11.5 (Debian 11.5-1.pgdg90+1)which I'm running through docker.I created a new database, and I ran this query:
Then I got this error:
Since I'm not installing
pgclithroughpip, thepip freezeoutput is irrelevant - pgcli is not going to use those libraries. But this command:Gives a pretty good idea of libraries used and file paths touched:
Interesting addition; if I change the query to this:
Then, instead, I get this error:
So I'm guessing
pgclijust has issues with transactions?Your environment
pip freezecommand.