Subject: bug#23242: [PATCH] ob-sql.el: set PGPASSWORD environment

From: Andreas Schwab <[email-masked]>
Date: Fri, 08 Apr 2016 17:45:58 +0200

Andreas Gerler <[email-masked]> writes:

>  		    (`postgresql (format
> -				  "psql --set=\"ON_ERROR_STOP=1\" %s -A -P \
> +				  "%s psql --set=\"ON_ERROR_STOP=1\" %s -A -P \
>  footer=off -F \"\t\"  %s -f %s -o %s %s"
> +				  (if dbpassword (concat "PGPASSWORD='" dbpassword "'") "")

This will fail if dbpassword contains ?\'.  Environment variables should
be passed via process-environment.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."