Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: preserve psql (#47045)

Vaibhav2bae11b549f8
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx
index 60402805e54..65157cb03dc 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx
@@ -194,14 +194,11 @@ function DirectConnectionContent({ state, deploymentMode }: StepContentProps) {
if (!temporaryDatabasePassword) return redactedConnectionString
if (connectionType === 'psql') {
- return `psql "${buildConnectionStringWithPassword(
- safeConnectionString,
- temporaryDatabasePassword
- )}"`
+ return redactedConnectionString
}
return buildConnectionStringWithPassword(redactedConnectionString, temporaryDatabasePassword)
- }, [connectionType, redactedConnectionString, safeConnectionString, temporaryDatabasePassword])
+ }, [connectionType, redactedConnectionString, temporaryDatabasePassword])
const trackCopy = () => {
const typeConfig = DATABASE_CONNECTION_TYPES.find((t) => t.id === connectionType)