Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XqcNH-00064X-6b for pgsql-odbc@arkaria.postgresql.org; Tue, 18 Nov 2014 06:34:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XqcNG-0004XQ-NM for pgsql-odbc@arkaria.postgresql.org; Tue, 18 Nov 2014 06:34:50 +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 1XqcNF-0004XJ-SP for pgsql-odbc@postgresql.org; Tue, 18 Nov 2014 06:34:49 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XqcNB-0006lZ-MF for pgsql-odbc@postgresql.org; Tue, 18 Nov 2014 06:34:48 +0000 Received: from ayaki.localdomain (124-169-108-102.dyn.iinet.net.au [124.169.108.102]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0Lg0Wh-1YImVF2kjj-00pdKl; Tue, 18 Nov 2014 07:34:36 +0100 Message-ID: <546AE876.6000503@2ndquadrant.com> Date: Tue, 18 Nov 2014 14:34:30 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: =?gbk?Q?=B2=CC=E7=E6=E7=E6?= , pgsql-odbc@postgresql.org Subject: Re: some questions in psqlodbc References: <4c7ba3df.451e.149b2348e1a.Coremail.caike85@126.com> In-Reply-To: <4c7ba3df.451e.149b2348e1a.Coremail.caike85@126.com> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:D3w8u6kQ7LXvAgOHl6N0gVZ0C8Ri36wHkhva2Mmcwfi YxVxSaax4GThSsx9g21br/CH5JkPLbRGnCzDv5XtEKOnHBVBvr 4n10AC+BVItz/AgfMsSi0/jTS57f48XSaN05tS/yY+p7Vkyy3d Y1GjHwrkzNqRhLlRsgFUg4G4TS1Lmx1S4F3vqygjucyKWxGsC8 DyVi6uAKBBO0v1fbsvRxXwTDJTWSMr6bG7rZ0CF5DC7fAWfWgS iO5p4USBlqnAuWGz5dH25sYJPjVT0oIGdzeDMTH01pSSuhZZVw IfEUaJ7ku/xecH9I+Lth6/PVX9nYOQrRPfRXbINvXeT26aHoQj 87B/cgDJYGBgdrXRnfHLJHktotWauvPTpf3lA0/lP X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) 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 Hi What's the underlying problem you are trying to solve? What error do you get that is making you investigate this area? What does not work the way you expect? It isn't clear what you're trying to do. On 11/15/2014 02:47 PM, ²Ìçæçæ wrote: > Dear somebody: > hello, I am eric from beijing. And I am a fresh man in psqlodbc. > When I am studing at the psqlodbc source code, I have some questions. > In file named "odbcapi.c", the function named "SC_opencheck" are > called almost everywhere, and in the function, why return some error > when "the cursor is open"? And using git, I saw that change was beening > done in 2004-01-06 17:58:22. Oh how old is it, but I can't understande > why we can't use a cursor when it is opened or created by some other? > And in function "PGAPI_ExtendedFetch" in another file "results.c", > which is called by SQLFetch, why seting cursor to start using function > "SC_inc_rowset_start" or function "SC_set_rowset_start"? > Because we will maybe get rowdata next or not? > Could you understand me? My englist is poor, and I am afraid that I > couldn't descript my questions clearly. I am sorry to apologize. > > Best wishes! > > Eric > > From Beijing 2014-11-15 > > -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc