pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Winslow <DWinslow@mcsIT.com>
To: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgresql.org>
Subject: libpq calls not working in a CGI environment
Date: Wed, 25 Oct 2000 14:02:48 -0500
Message-ID: <C1721C007EB2D311A1E100500474823601ADC0@mail.mcsit.com> (raw)

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




Message-ID: <C1721C007EB2D311A1E100500474823601ADC0@mail.mcsit.com>
Permalink:  ../C1721C007EB2D311A1E100500474823601ADC0@mail.mcsit.com/
Also on:    postgresql.org/message-id/C1721C007EB2D311A1E100500474823601ADC0@mail.mcsit.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: DWinslow@mcsIT.com
  Subject: Re: libpq calls not working in a CGI environment
  In-Reply-To: <C1721C007EB2D311A1E100500474823601ADC0@mail.mcsit.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox