List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:March 31 2006 3:37pm
Subject:Re: Escaping a string
View as plain text  
Samuel Borgman wrote:
> 
> What does manip.cpp:99-114(in 2.0.7) do 

Not what you think it does.  Build and run this:

#include <mysql++.h>
#include <iostream>

int main()
{
         mysqlpp::Connection c;
         mysqlpp::Query q(&c);
         q << mysqlpp::quote << "quote me, please";
         std::cout << q.preview() << std::endl;
         return 0;
}

Betcha it doesn't quote the given string.

Patches thoughtfully considered.
Thread
Escaping a stringBjoern Rasmussen31 Mar
Re: Escaping a stringBjoern Rasmussen31 Mar
  • Re: Escaping a stringWarren Young31 Mar
    • Re: Escaping a stringSamuel Borgman31 Mar
      • Re: Escaping a stringWarren Young31 Mar
        • Re: Escaping a stringSamuel Borgman31 Mar
          • Re: Escaping a stringWarren Young5 Apr