From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yPNfESNh3mRhCQAASxT56A (envelope-from ) for ; Thu, 17 Aug 2023 20:04:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SC43ESNh3mQJagAAauVa8A (envelope-from ) for ; Thu, 17 Aug 2023 20:04:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A34E84FBC4 for ; Thu, 17 Aug 2023 20:04:18 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="SJlr/DL7"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692295459; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kZRNTisKQnDxVwfMgcrztlMlUz66Q3ZJWXzBAtTWfDA=; b=d/smwA8p51QFpJsDqODKIhRlUDJbK7HfX4t1Dil6kFaf/xuy1BYfFG1clpu6hqi4rQRPZR rmVaDLdfyb5nxRLu4mXl1znOb6ySdYMv3USZZJaiyLjRL9YWyJFVmN/EQyEN7PdNEHm83b F/pe6qOOB8hh/Kbh+fGj6jwymZrVy/4kAtNJdT7h62IP6OuDdMDGgJuuxV4Eqek582yp9w b/F03BhCOwf22+UYdkieuY8LAhpaa0AXalCiNKqQE9P+7MUh+JQ4QkS2wVjbxTpv+CiR6B FpBQ0APzG+g63oIZm/5rSwomQ08YU0/BJo5+7X12MSZ5CM60FBo1C94jzzizSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692295459; a=rsa-sha256; cv=none; b=osSvN6GUfRujKWPQuPuvraci6uQFCKojz/2AA6BgBiFaEtdZRX5+HY8x9k/n1pn5LVmsAX nV34XuKBD2CO0/jXyD5gopa/ZhoaWxLDvsFgspYEyr/S2NNzRsG+drX1I5G/AbL2aYKKgn d9bBiSz1XeSJMBbrtU3XMTT8O+aB/5qdp3hrLlL+yQQM6fNTKhPMbWPdL9RE62o+bZ+lzN 1U4nfHC7cbvPxkfiDj/mO9EWtSoBFv8Dk3kqzOX1aaIUdnkrzgjBwbCliRE9SWtm97D6LF BTYfcJ/IwRWRJkKrI0EUQqPJXC+RKAwceSVuSHZpQIPxx5TxQW8105YqYQkn1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="SJlr/DL7"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWhLI-0003ss-9O; Thu, 17 Aug 2023 14:03:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWhLC-0003oN-GW for emacs-orgmode@gnu.org; Thu, 17 Aug 2023 14:03:28 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWhL9-0006gR-8K for emacs-orgmode@gnu.org; Thu, 17 Aug 2023 14:03:26 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 119C4240103 for ; Thu, 17 Aug 2023 20:03:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692295401; bh=zZpP0xvL/L0D26BzCiO6n+P8V+duAtmLKM7G8KVW5XQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=SJlr/DL7K+mTI9gpEgvj0WvDciIZzXnz1xS0EZIHP8MTefvrgG98kcDPsg/ZwmJw7 pl0fYQDvplkF18e5jxv3Wb4Kp+hVtWad8+sD1q24OuPZBnxT/qdX/v/W7ZZEds0jwB jLhnbZDNT/UT7BsILYFfFx0Nt5/lsdwy+sEI/z8d2Wj+mkvU3cLr56PLXHvx/o/B/Y hKhsB0otCBvPncGnwSrLuArNzI1iT/HRJBS8MQbo/OhkCrGaJ7Q41IdPUDFAAOCRc6 294AlUb48YKGL9UPewA8Ez+Q69vUoPhhmjXvQL/0rNl/sJgPsdSWFxH9eZpwyXYApi Se81nv/bAb17Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RRXtJ4v7fz9rxB; Thu, 17 Aug 2023 20:03:20 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] ob-sqlite: can not override header argument In-Reply-To: References: Date: Thu, 17 Aug 2023 18:03:50 +0000 Message-ID: <87jzttpmux.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.84 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: A34E84FBC4 X-Spam-Score: -7.84 X-TUID: 3sxvmwXrL0RW Max Nikulin writes: > It seems there is no way to override for a specific code block header > arguments specified for the whole file through #+property: > > #+property: header-args:sqlite :header > #+begin_src elisp :results none > (require 'ob-sqlite) > #+end_src > > I have tried "nil", etc. for ":header", but column names are always > added to results. Yes, it is not. https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-sqlite.html header if present, turn on headers in the output format. Mere presence of this header argument triggers inclusion. Nothing is said about overriding it. I think that we may allow :header/:echo/:bail/... no to disable the cmd switches. Patches welcome! > Bonus: it seems condition for :csv is inverted, so -csv is always added. > I have not managed to override comma using :separator since -csv is > added later. The source says ;; for easy table parsing, default header type should be -csv (cons "csv" (if (or (member :csv others) (member :column others) (member :line others) (member :list others) (member :html others) separator) "" "-csv")) So, it is at least intentional. Note that (member :csv others) yielding "" is also intentional because it is already added by that time in %others. It is also documented to be the default: csv the default SQLite output format for Babel SQLite source code blocks. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at