Segementation fault in PQgetvalue() - Mailing list pgsql-general

From Nikhil Bokare
Subject Segementation fault in PQgetvalue()
Date
Msg-id 463adc14-01d5-4bc8-952a-a3d718e99e38@s8g2000prg.googlegroups.com
Whole thread Raw
Responses Re: Segementation fault in PQgetvalue()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
This is what I'm trying to:

char lmt_str[100];
sprintf(lmt_str,"%s",PQgetvalue(res, 0, nFields-1));
//the last field is of type timestamp


This is giving segmentation fault.
I'm confused....

pgsql-general by date:

Previous
From: Ow Mun Heng
Date:
Subject: Re: Column Statistics - How to dertermine for whole database
Next
From: Alban Hertroys
Date:
Subject: Re: Trigger to run @ connection time?