emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] sql can't export an empty table, gives error


From: Gary Oberbrunner
Subject: Re: [O] sql can't export an empty table, gives error
Date: Wed, 24 Dec 2014 09:55:34 -0500


On Tue, Dec 23, 2014 at 5:34 PM, Gary Oberbrunner <address@hidden> wrote:
If you try to export this document:

#+BEGIN_SRC sql :exports both
 select 1 limit 0;
#+END_SRC

It fails to export with an error in *Messages*:
 user-error: Empty table - created default table
It also stops processing the document at that point.
(That SQL code produces no output but is not a SQL error.)

I'd prefer if it would just leave that empty (missing) table out, and keep going.  Is there any way to do that?

Here's a simple patch to fix this, if people are interested.
 
--
Gary

Attachment: 0001-Allow-empty-table-creation-on-export-rather-than-giv.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]