libpq calls not working in a CGI environment - Mailing list pgsql-interfaces

From Dan Winslow
Subject libpq calls not working in a CGI environment
Date
Msg-id C1721C007EB2D311A1E100500474823601ADC0@mail.mcsit.com
Whole thread Raw
List pgsql-interfaces
Hi -I am developing a CGI program that runs under apache on linux (
redhat 7.0 ), and that uses libpq calls. It does a simple select of a single
varchar column and does a strcpy to a local program variable using
PQgetvalue. When I run it from the command line, it works great. When I run
it as a CGI, it does not error but the string results are garbage. Any
clues? Can post code if necessary. Thanks in advance.

Dan Winslow



pgsql-interfaces by date:

Previous
From: Red Pineseed
Date:
Subject: XML Support in Postgres
Next
From: Tom Lane
Date:
Subject: Re: RE: JDBC now needs updates for large objects