Skip site navigation (1) Skip section navigation (2)

Testing mailing-list + Question on C++ interface

From: Carlos Moreno <moreno(at)mochima(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Testing mailing-list + Question on C++ interface
Date: 2001-05-03 02:55:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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 

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  :-)) 



pgsql-interfaces by date

Next:From: J. T. VermeulenDate: 2001-05-03 13:47:28
Subject: Re: Re: libpq++
Previous:From: Lamar OwenDate: 2001-05-02 21:12:24
Subject: Re: Cannot build PL/Perl ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group