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: 3AF0C8B1.2C7B771E@mochima.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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
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
--

Browse pgsql-interfaces by date

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