Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wnfxp-0003XD-Qh for pgsql-odbc@arkaria.postgresql.org; Fri, 23 May 2014 03:16:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wnfxo-00089b-Ls for pgsql-odbc@arkaria.postgresql.org; Fri, 23 May 2014 03:16:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wnfxn-00089U-RS for pgsql-odbc@postgresql.org; Fri, 23 May 2014 03:16:07 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wnfxi-0002x8-6S for pgsql-odbc@postgresql.org; Fri, 23 May 2014 03:16:06 +0000 Received: (qmail 6547 invoked by uid 512); 23 May 2014 03:15:56 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 23 May 2014 03:15:56 -0000 Message-ID: <537EBD6B.7000204@tpf.co.jp> Date: Fri, 23 May 2014 12:15:55 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Daniel_D=EDaz?= , pgsql-odbc@postgresql.org Subject: Re: Disabling scalar functions in a DSN. References: <537C5DC7.6020908@denodo.com> In-Reply-To: <537C5DC7.6020908@denodo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (2014/05/21 17:03), Daniel Díaz wrote: > Hi, > > I have a few doubts about ODBC scalar function support. > > After having installed the driver and created a DSN, is there some flag > that can be set to disable support for scalar functions like {fn > current_date()}, and in a way that clients can detect by calling SQLGetInfo? > > Alternatively, is there a way to configure a DSN so that scalar > functions are sent to the database "as themselves", for example {fn > current_date()} =====> current_date() ? > > Looking in the driver source code, I see a file odbc.sql, that contains > Postgres function definitions. What is the purpose of this file? To be > able to invoke scalar functions directly without needing the {fn ...} > syntax ? Currently odbc.sql isn't used. Please look at mapFuncs array in convert.c. For scalar functions not found in the table, {fn xxx(...)} is simply converted to xxx(...). regards, Hiroshi Inoue -- I am using the free version of SPAMfighter. SPAMfighter has removed 10186 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len Do you have a slow PC? Try a Free scan http://www.spamfighter.com/SLOW-PCfighter?cid=sigen -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc