Re: [O] not handling failing sql statements in ob-sql.el with postgresql

2013-12-01 Thread Eric Schulte
Joost Helberg jo...@snow.nl writes: Hi, in case psql (version 9.1 and later) encounters a SQL error, e.g. a syntax error, it doesn't exit with an error-code. Instead it continues and exits with 0. This means that evaluating faulty SQL-code in org-mode/babel leaves the user with no clue of

[O] not handling failing sql statements in ob-sql.el with postgresql

2013-11-27 Thread Joost Helberg
Hi, in case psql (version 9.1 and later) encounters a SQL error, e.g. a syntax error, it doesn't exit with an error-code. Instead it continues and exits with 0. This means that evaluating faulty SQL-code in org-mode/babel leaves the user with no clue of why the result set is empty. I changed

Re: [O] not handling failing sql statements in ob-sql.el with postgresql

2013-11-27 Thread Rick Frankel
On 2013-11-27 04:49, Joost Helberg wrote: Hi, in case psql (version 9.1 and later) encounters a SQL error, e.g. a syntax error, it doesn't exit with an error-code. Instead it continues and exits with 0. This means that evaluating faulty SQL-code in org-mode/babel leaves the user with no clue of