db execute: confusing error message when doing DROP DATABASE "test-doesnotexists;"
says that Database postgres.public does not exist
#11673
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines
Issue for tech Engines.
topic: error
topic: prisma db execute
CLI: prisma db execute
Milestone
Given this schema and command
I expected to get a SQL error message but instead got the following
Note that doing the following works and returns
Script executed successfully.
echo "CREATE DATABASE "test12344";" | npx prisma@dev db execute --stdin --preview-feature --schema prisma/schema.prisma
The text was updated successfully, but these errors were encountered: