List:MySQL++« Previous MessageNext Message »
From:Kevin Regan Date:February 10 2006 5:51pm
Subject:RE: Strange result from query::execute()?
View as plain text  
This is with v2.0.7.

--Kevin

-----Original Message-----
From: Kevin Regan [mailto:k.regan@stripped]
Sent: Fri 2/10/2006 9:49 AM
To: plusplus@stripped
Subject: Strange result from query::execute()?
 

Should the following have different results?

        ...
        std::string s = "SET AUTOCOMMIT=1";
        query.execute(s.c_str());
        query.execute(s);

The first succeeds.  The seconds throws an exception with the value "Query was empty." 
Looking at the code, the first call goes to Query::execute(const char*).  However, the
second uses a "parms" version of execute.

Is this expected behavior?  From the library user's perspective, it seems confusing.

--Kevin


Thread
Strange result from query::execute()?Kevin Regan10 Feb
  • RE: Strange result from query::execute()?Kevin Regan10 Feb
  • Re: Strange result from query::execute()?Warren Young10 Feb
RE: Strange result from query::execute()?Kevin Regan10 Feb