fix: missing closing quotes in connection string (#22897)

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
This commit is contained in:
divitandCharis authored and GitHub committed 2024-04-19 14:30:17 +00:00
1 parent 731f9d703e
commit 94f17c6d0e
1 file changed
+1 -1
@@ -29,7 +29,7 @@ export const getConnectionStrings = (
: `postgresql://${user}:${password}@` + `${host}:${port}` + `/${name}`
const golangConnString = `user=${user} password=${password} host=${host} port=${port} dbname=${name}${showOptions ? ` options=reference=${projectRef}` : ''}`
const psqlConnString = isMd5
? `psql "postgresql://${user}:${password}@${host}:${port}/${name}${usePoolerConnection ? `?options=reference%3D${projectRef}` : ''}`
? `psql "postgresql://${user}:${password}@${host}:${port}/${name}${usePoolerConnection ? `?options=reference%3D${projectRef}` : ''}"`
: `psql -h ${host} -p ` + `${port} -d ${name} ` + `-U ${user}`
const jdbcConnString = `jdbc:postgresql://${host}:${port}/${name}?user=${user}&password=${password}${showOptions ? `&options=reference%3D${projectRef}` : ''}`
const dotNetConnString = `User Id=${user};Password=${password};Server=${host};Port=${port};Database=${name};${showOptions ? `Options='reference=${projectRef}'` : ''}`