List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:August 14 2006 1:26pm
Subject:Re: Problem with DELETE
View as plain text  
Muller Gael wrote:
>                     std::cout << row["type"];

Add " << endl" or " << flush" to the end of this statement.  IOStreams 
will buffer output otherwise, making it difficult to determine which 
order things actually happen in.

>           catch (mysqlpp::EndOfResults& er) {
>                //on ne fait rien
>          }

Add a cout statement in here (again, with a flush or newline).

>          query.reset();
>          query << "DELETE FROM actions";
>          query.execute();

Add one after this, too.

Do all that and try it again.  It may be that things are not happening 
in the order you think they are.
Thread
Problem with DELETEMuller Gael13 Aug
  • Re: Problem with DELETEWarren Young14 Aug