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.89) (envelope-from ) id 1iVbfE-0001m8-2L for pgsql-odbc@arkaria.postgresql.org; Fri, 15 Nov 2019 13:29:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iVbfC-00019v-EP for pgsql-odbc@arkaria.postgresql.org; Fri, 15 Nov 2019 13:29:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iVbfC-00019o-43 for pgsql-odbc@lists.postgresql.org; Fri, 15 Nov 2019 13:29:26 +0000 Received: from webclient5.webclient5.de ([136.243.32.184]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVbf8-0005Fi-F3 for pgsql-odbc@lists.postgresql.org; Fri, 15 Nov 2019 13:29:24 +0000 Received: from [10.1.2.4] (unknown [94.101.37.79]) by webclient5.webclient5.de (Postfix) with ESMTPSA id C861355832B7 for ; Fri, 15 Nov 2019 14:29:18 +0100 (CET) Subject: Re: Getting Recordset through returning refcursor To: pgsql-odbc@lists.postgresql.org References: From: Clemens Ladisch Message-ID: Date: Fri, 15 Nov 2019 14:29:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 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.99.4 at webclient5 X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kubilay Kaan wrote: > So my question is does the ODBC driver supports refcursor?? The ODBC driver just transmits all SQL commands to the database. As far as I know, the refcursor type is not available in SQL, only in PL/pgSQL, which can be used only inside functions. > "select GetRecordSetByID_ref('refcur', 1); FETCH ALL IN \"refcur\";" Do these commands work when executed in psql? Regards, Clemens