Bryan3
Explore posts from serversDTDrizzle Team
•Created by Bryan3 on 9/29/2023 in #help
Delete operation in transaction sometimes not deleting row in database
Hi, I'm calling a delete operation in a transaction that deletes an
organization
row in a Supabase Postgres database:
But sometimes if I delete the row immediately after creation, the console log says the row is deleted but it remains in the database. I need to call delete again for the row to be deleted. (Two deletions console logged below where only after the second delete log row is deleted from the database).
Is there an issue with how the transaction is written that is causing the problem? It seems that if I'm getting a console log back drizzle is telling me the object should be deleted. Thank you very much.6 replies
DTDrizzle Team
•Created by Bryan3 on 9/28/2023 in #help
How to include all fields in partial select syntax
Hi, I'm trying to append the
organization
field using a leftjoin
to the existing fields in contact
like this:
The query works but the IDE is giving me the error:
for the ...contact
part.
What would be the correct syntax to do this? Thanks.10 replies