Re: [BUG] ob-sql should escape the password [9.7.3 (9.7.3-2f1844 @ /home/andrea/.emacs.d/elpa/org-9.7.3/)]

2024-06-08 Thread Ihor Radchenko
Andrea writes: > ob-sql.el has a function org-babel-execute:sql. This function extracts > the password to connect to your database of choice as dbpassword. > It then uses it like this: > > (if dbpassword > (format "PGPASSWORD=%s " dbpassword) > "") > > If the password contains an

Re: [BUG] ob-sql should escape the password [9.7.3 (9.7.3-2f1844 @ /home/andrea/.emacs.d/elpa/org-9.7.3/)]

2024-06-06 Thread Phil
* [2024-06-07 00:58] Andrea: org-babel-execute:sql. This function extracts the password to connect to your database of choice as dbpassword. It then uses it like this: (format "PGPASSWORD=%s " dbpassword) If the password contains an & character, the execution of a block fails. I

[BUG] ob-sql should escape the password [9.7.3 (9.7.3-2f1844 @ /home/andrea/.emacs.d/elpa/org-9.7.3/)]

2024-06-06 Thread Andrea
Hello there, thanks for Org Mode! ob-sql.el has a function org-babel-execute:sql. This function extracts the password to connect to your database of choice as dbpassword. It then uses it like this: (if dbpassword (format "PGPASSWORD=%s " dbpassword) "") If the password