Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jCQBa-0002BA-Mq for pgsql-odbc@arkaria.postgresql.org; Thu, 12 Mar 2020 15:55:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCQBY-0001K8-3q for pgsql-odbc@arkaria.postgresql.org; Thu, 12 Mar 2020 15:55:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCQBX-0001K1-Sk for pgsql-odbc@lists.postgresql.org; Thu, 12 Mar 2020 15:55:47 +0000 Received: from webclient5.webclient5.de ([136.243.32.184]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCQBV-0007z7-54 for pgsql-odbc@lists.postgresql.org; Thu, 12 Mar 2020 15:55:47 +0000 Received: from [10.1.2.4] (unknown [94.101.37.79]) by webclient5.webclient5.de (Postfix) with ESMTPSA id B12C757A6520 for ; Thu, 12 Mar 2020 16:55:41 +0100 (CET) Subject: Re: fn TIMESTAMPADD To: pgsql-odbc@lists.postgresql.org References: From: Clemens Ladisch Message-ID: <78528ee7-e623-4b1a-22f2-ced3c0802aa4@ladisch.de> Date: Thu, 12 Mar 2020 16:55:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.101.4 at webclient5 X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthias Coene wrote: > I seem to have a problem with the TIMESTAMPADD function: > > {fn TimestampAdd(SQL_TSI_YEAR, 18, T54148.GEBOREN)} as c2 > > [nQSError: 16001] ODBC error state: 42703 code: 1 message: *ERROR: column "sql_tsi_year" does not exist;* psqlODBC supports neither the TIMESTAMPADD function nor the SQL_TSI_YEAR keyword, and it correctly reports this lack of support through the SQLGetInfo function. Apparently, Oracle BI does not check whether this is supported. (But it wouldn't be easy for it to work around this even if it checked.) Regards, Clemens