Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 499FB475A05 for ; Mon, 5 Aug 2002 12:17:44 -0400 (EDT) Received: from goose.mail.pas.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by postgresql.org (Postfix) with ESMTP id CE24A4759D1 for ; Mon, 5 Aug 2002 12:17:43 -0400 (EDT) Received: from user-vcaum6v.dsl.mindspring.com ([216.175.88.223] helo=software1.logiplex.internal) by goose.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17bkXy-0000sG-00; Mon, 05 Aug 2002 09:17:30 -0700 Subject: Re: ECPG and dynamic SQL From: Cliff Wells To: Christof Petig Cc: pgsql-interfaces In-Reply-To: <3D4E9D9C.1040301@petig-baender.de> References: <1027981411.2433.30.camel@software1.logiplex.internal> <200207292337.g6TNb3rm025336@smtp-server6.tampabay.rr.com> <1028318503.5731.18.camel@software1.logiplex.internal> <3D4E9D9C.1040301@petig-baender.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 05 Aug 2002 09:11:47 -0700 Message-Id: <1028563907.4210.6.camel@software1.logiplex.internal> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/19 X-Sequence-Number: 2981 On Mon, 2002-08-05 at 08:45, Christof Petig wrote: > Cliff Wells schrieb: > > On Mon, 2002-07-29 at 16:37, Jim Parker wrote: > > > >>The app GtkSQL does what you need, but it is implimented in libpq. It will > >>give you a general idea of how to do it. > >> > >>Do a google search. > >> > >>There is another app that is similar (libpq also) a little less complex, so > >>easier to follow, called dbui-0.4.0 A Google search will give you a URL > > > > > > Yeah, I was afraid there was no way to do it using ecpg... oh well. > > > > Thanks for the info. > > Of course there is a way to do it in ecpg! Ecpg simply does not provide > the (IMO) overloaded sqlda interface but uses the new lean get > descriptor interface (SQL standard). See interfaces/ecpg/tests/dyntest* > for an example. > > Christof > > PS: If you want to use this: you can even fetch into a char **results=0; > but have to free the array afterwards. > Ah. Thank you very much! I don't know how I missed that. It seems the quickest way to have someone tell you how to do something is to suggest it can't be done ;) Regards, -- Cliff Wells, Software Engineer Logiplex Corporation (www.logiplex.net) (503) 978-6726 x308 (800) 735-0555 x308