pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlos Moreno <moreno@mochima.com>
To: pgsql-interfaces@postgresql.org
Subject: Testing mailing-list  +  Question on C++ interface
Date: Wed, 02 May 2001 22:55:45 -0400
Message-ID: <3AF0C8B1.2C7B771E@mochima.com> (raw)


I just subscribed and can't find the instructions to send 
messages to the list...  Hope this is the right way... 

Anyway, I couldn't find an answer to my (very basic) problem 
in the FAQs, so here goes... 

I'm using C++ to connect to a PostgreSQL database, with 
something similar to this:

PgConnection c ("host=localhost dbname=test");

c.Exec ("select * from test");

As soon as I do that, my program sends output to the console. 
(well, since I was writing a test program and I was printing 
the results of the SQL statement, I'm seeing the ouput 
duplicated). 

How can I avoid this?  It is crucial that I do so, since I'm 
planning to use this on CGI applications, so anything that 
is sent to stdout would be caught by apache and sent back 
to the client's browser...  (not really good news, huh?  :-))

Anyway, I would appreciate any guidance  (I guess I don't 
need to tell that I'm a beginner  :-)) 

Thanks!

Carlos
--



Message-ID: <3AF0C8B1.2C7B771E@mochima.com>
Permalink:  ../3AF0C8B1.2C7B771E@mochima.com/
Also on:    postgresql.org/message-id/3AF0C8B1.2C7B771E@mochima.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: moreno@mochima.com
  Subject: Re: Testing mailing-list  +  Question on C++ interface
  In-Reply-To: <3AF0C8B1.2C7B771E@mochima.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