Re: PQexecParams-Problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mavinakuli, Prasanna (STSD)" <prasanna(dot)b-m(at)hp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQexecParams-Problem
Date: 2005-08-31 16:36:28
Message-ID: 2669.1125506188@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mavinakuli, Prasanna (STSD)" <prasanna(dot)b-m(at)hp(dot)com> writes:
> Here is the code snapshot:
> string query="select intval from dummy where intval=7;";

> res1=PQexecParams(conn,query.c_str(),0,NULL,NULL,NULL,NULL,1);
> for(unsigned char i=0;i<4;i++)
> {
> printf("%d \n",(PQgetvalue(res1,0,0)[i]));
> //prints 0000 here
> }

Um, what's the actual data type of intval? The above would be expected
if it were, say, bigint.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Henrique Reimer 2005-08-31 16:52:23 Messages doesn´t appear
Previous Message aly.dharshi 2005-08-31 16:17:54 Re: newbie - postgresql or mysql