emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* sql can't export an empty table, gives error
@ 2014-12-23 22:34 Gary Oberbrunner
  2014-12-24 14:55 ` Gary Oberbrunner
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Oberbrunner @ 2014-12-23 22:34 UTC (permalink / raw)
  To: Orgmode Mailing List

[-- Attachment #1: Type: text/plain, Size: 429 bytes --]

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?

-- 
Gary

[-- Attachment #2: Type: text/html, Size: 648 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-24 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-23 22:34 sql can't export an empty table, gives error Gary Oberbrunner
2014-12-24 14:55 ` Gary Oberbrunner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).