Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn1Uo-0004OI-6E for pgsql-odbc@arkaria.postgresql.org; Wed, 21 May 2014 08:03:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wn1Um-0006Yj-A0 for pgsql-odbc@arkaria.postgresql.org; Wed, 21 May 2014 08:03:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn1Uk-0006YZ-BG for pgsql-odbc@postgresql.org; Wed, 21 May 2014 08:03:26 +0000 Received: from mail-wi0-f173.google.com ([209.85.212.173]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn1Uh-0005t1-9W for pgsql-odbc@postgresql.org; Wed, 21 May 2014 08:03:25 +0000 Received: by mail-wi0-f173.google.com with SMTP id bs8so7194715wib.12 for ; Wed, 21 May 2014 01:03:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type; bh=LcMdhmYT83VZgFyW9fuMl7z2KTOz4TMka9n5qQXYQBs=; b=E1HYB2JT4sE7UlzTH8DoMhfcicAvhLqflgWYEB0DkiCYbAVFVFMs+px7NBrJpPvL+B tapWeO33E2+U79e0G3boio0UiR3maLbShW+nv952bsbBJcmA8aRU+M3B1vl2qt5Qju8c g8CSH+BXIeHSWiO+NcCWfzOqB1h0e6i6RdClzVdRUpcxn11xbwbwXp3ddhRkuKQJ5bMX DC2ycWzAxieVV7JmoGN2P93eePmASMYg61BVQDraWoBXe7EzzftB33LE1vfX3K1xuVN5 mlUHEzUbNzIqN0gB51uZkXXyUZL7AGCcLsqMqK9WQ+80W+CwSwjBYVWB5UD8pDfS5CzN S/TA== X-Gm-Message-State: ALoCoQmyYkboVtlu9ai7Px4iCKp/KYlZ6PZWnJElkKQfgeEEAzxuDobrGiV7WMNsH4pLZsPEFR9o X-Received: by 10.194.91.175 with SMTP id cf15mr42576027wjb.5.1400659401431; Wed, 21 May 2014 01:03:21 -0700 (PDT) Received: from [192.168.0.30] (90.136.116.91.static.mundo-r.com. [91.116.136.90]) by mx.google.com with ESMTPSA id w6sm21553305wjq.29.2014.05.21.01.03.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 01:03:20 -0700 (PDT) Message-ID: <537C5DC7.6020908@denodo.com> Date: Wed, 21 May 2014 10:03:19 +0200 From: =?ISO-8859-1?Q?Daniel_D=EDaz?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Disabling scalar functions in a DSN. Content-Type: multipart/alternative; boundary="------------030807020103070208090604" X-Pg-Spam-Score: -1.2 (-) 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 This is a multi-part message in MIME format. --------------030807020103070208090604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 ? Thanks in advance, Daniel --------------030807020103070208090604 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 ?

Thanks in advance,
Daniel
--------------030807020103070208090604--