List:MySQL++« Previous MessageNext Message »
From:Florian Feldbauer Date:October 26 2010 7:37am
Subject:Re: Problems with storein and template queries
View as plain text  
In pricipal my code looks like that:

   vector<electronics> elec;
   mysqlpp::Query query = conn.query("SELECT * FROM %0q WHERE type = %1q");
   query.parse();

   std::string searchstring;
   cin >> searchstring;
   cout << qeury.str("electronics",searchstring) << endl;
   query.storein(elec,"electronics",searchstring);

When I enter for example 'Hello', the cout returns:
"SELECT * FROM "electronics" WHERE type = 'Hello'"
but after this output I get the error message

On Mon, 25 Oct 2010, Warren Young wrote:

> On Oct 25, 2010, at 2:09 PM, Florian Feldbauer wrote:
>
>> Ok, I changed the query template to
>>  mysqlpp::Query query = conn.query("SELECT * FROM %0q WHERE col0 = %1q");
>> also swapped the parameters in the storein call, but I still have this problem.
>
> Can you change one of the examples to demonstrate the symptom?
>
Thread
Problems with storein and template queriesFlorian Feldbauer25 Oct
  • Re: Problems with storein and template queriesWarren Young25 Oct
    • Re: Problems with storein and template queriesFlorian Feldbauer25 Oct
      • Re: Problems with storein and template queriesWarren Young26 Oct
        • Re: Problems with storein and template queriesFlorian Feldbauer26 Oct
          • Re: Problems with storein and template queriesWarren Young26 Oct
            • Re: Problems with storein and template queriesWarren Young26 Oct
              • Re: Problems with storein and template queriesFlorian Feldbauer27 Oct
                • Re: Problems with storein and template queriesWarren Young3 Nov
  • Re: Problems with storein and template queriesAdrian Cornish25 Oct
    • Re: Problems with storein and template queriesWarren Young25 Oct