Re: Inserting large number of rows using libpq++ stops responding in c++ - Mailing list pgsql-general

From Taz Master
Subject Re: Inserting large number of rows using libpq++ stops responding in c++
Date
Msg-id 20021202044016.26780.qmail@web12507.mail.yahoo.com
Whole thread Raw
In response to Re: Inserting large number of rows using libpq++ stops responding in c++  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@rocketmail.com


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

pgsql-general by date:

Previous
From: Taz Master
Date:
Subject: Re: Inserting large number of rows using libpq++ stops responding in c++
Next
From: Taz Master
Date:
Subject: Re: how to make an 'UNLOCK'?