* contrib/lisp/orgtbl-sqlinsert.el (orgtbl-to-sqlinsert): Bugfixes regarding header line formatting
This commit is contained in:
parent
ce0269fb6b
commit
cc7d54515b
|
@ -70,14 +70,14 @@ this function is called."
|
||||||
(*orgtbl-default-fmt* 'orgtbl-sql-strip-and-quote)
|
(*orgtbl-default-fmt* 'orgtbl-sql-strip-and-quote)
|
||||||
(params2
|
(params2
|
||||||
(list
|
(list
|
||||||
:sqlname name
|
:sqlname (plist-get params :sqlname)
|
||||||
:tstart (lambda () (concat (if nowebname
|
:tstart (lambda () (concat (if nowebname
|
||||||
(format "<<%s>>= \n" nowebname)
|
(format "<<%s>>= \n" nowebname)
|
||||||
"")
|
"")
|
||||||
"BEGIN TRANSACTION;"))
|
"BEGIN TRANSACTION;"))
|
||||||
:tend (lambda () (concat "COMMIT;" (if nowebname "\n@ " "")))
|
:tend (lambda () (concat "COMMIT;" (if nowebname "\n@ " "")))
|
||||||
:hfmt (lambda (f) (progn (if firstheader (push f hdrlist)) ""))
|
:hfmt (lambda (f) (progn (if firstheader (push f hdrlist) "")))
|
||||||
:hlfmt (lambda (lst) (setq firstheader nil))
|
:hlfmt (lambda (&rest cells) (setq firstheader nil))
|
||||||
:lstart (lambda () (concat "INSERT INTO "
|
:lstart (lambda () (concat "INSERT INTO "
|
||||||
sqlname "( "
|
sqlname "( "
|
||||||
(mapconcat 'identity (reverse hdrlist)
|
(mapconcat 'identity (reverse hdrlist)
|
||||||
|
|
Loading…
Reference in New Issue