Re: Inserting large number of rows using libpq++ stops responding in c++

From: Taz Master <tazmaster(at)rocketmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Inserting large number of rows using libpq++ stops responding in c++
Date: 2002-12-02 04:40:16
Message-ID: 20021202044016.26780.qmail@web12507.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

(( I forgot to show my executeSQLcommand method

bool CDBConnect::executeSQLcommand( std::string query )
{
if ( query[query.length()] != ';' )
{
query = query + ";";
}
if ( dbdata == NULL )
{
std::cout << "Not connected to server." << std::endl;
return false;
}
if ( ! dbdata->ExecCommandOk( query.c_str() ) )
{
std::cerr << "SQL command failed!" << std::endl;
std::cerr << "Error was: " << dbdata->ErrorMessage() <<
std::endl;
std::cout << "SQL command failed!" << std::endl;
std::cout << "Error was: " << dbdata->ErrorMessage() <<
std::endl;

return false;
}

return true;

}

=====
Taz Master
mailto:tazmaster(at)rocketmail(dot)com

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Taz Master 2002-12-02 04:51:28 Re: how to make an 'UNLOCK'?
Previous Message Taz Master 2002-12-02 04:38:30 Re: Inserting large number of rows using libpq++ stops responding in c++