X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A6651D922B for ; Fri, 30 Sep 2005 12:58:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20740-05 for ; Fri, 30 Sep 2005 15:57:58 +0000 (GMT) Received: from Mail2.KONTENT.De (mail2.kontent.de [81.88.34.59]) by svr1.postgresql.org (Postfix) with ESMTP id C4207D91EF for ; Fri, 30 Sep 2005 12:57:57 -0300 (ADT) Received: from jedi.behrens.de (p5085AB09.dip0.t-ipconnect.de [80.133.171.9]) by Mail2.KONTENT.De (Postfix) with ESMTP id C17C938801C for ; Fri, 30 Sep 2005 17:57:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by jedi.behrens.de (Postfix) with ESMTP id 10811C50D for ; Fri, 30 Sep 2005 17:57:55 +0200 (CEST) Received: from jedi.behrens.de ([127.0.0.1]) by localhost (jedi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06710-08 for ; Fri, 30 Sep 2005 17:57:54 +0200 (CEST) Received: from anakin (anakin.behrens.de [192.168.150.240]) by jedi.behrens.de (Postfix) with ESMTP id DDDB9C50B for ; Fri, 30 Sep 2005 17:57:54 +0200 (CEST) From: lothar.behrens@lollisoft.de To: pgsql-odbc@postgresql.org Date: Fri, 30 Sep 2005 17:57:51 +0200 MIME-Version: 1.0 Subject: Re: select count(*) datatype ? Message-ID: <433D7C9F.19166.1ECB6C5@localhost> In-reply-to: <20334.1128088493@sss.pgh.pa.us> References: <433D3798.1250.DF1725@localhost> X-mailer: Pegasus Mail for Windows (4.21c, DE v4.21c R1a) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.211 required=5 tests=[AWL=-0.017, FORGED_RCVD_HELO=0.05, NO_REAL_NAME=0.178] X-Spam-Level: X-Archive-Number: 200509/203 X-Sequence-Number: 6101 Am 30 Sep 2005 um 9:54 hat Tom Lane geschrieben: > lothar.behrens@lollisoft.de writes: > > what type of column is an aggregated value of count ? > > bigint, at least in recent PG releases. > > regards, tom lane > Thanks, but now I am a little confused about how to convert those datatypes to a c= har[] type. I write long datatypes from char[] array into bound buffer: long l =3D 0; l =3D atol("long value"); long* pl =3D (long*) buffer; void* b =3D pl+1; memcpy(b, &l, sizeof(l)); I read long datatypes into char[] array from bound buffer: char charrep[100] =3D ""; sprintf(charrep, "%d", *(long*) buffer); result->setData(charrep); How do I this for bigint datatypes (long long as I think) ? Thanks Lothar -- Lothar Behrens | Rapid Prototyping ... Rosmarinstr 3 | 40235 D=FCsseldorf | www.lollisoft.de