4 messages in com.mysql.lists.plusplusStrange result from query::execute()?
FromSent OnAttachments
Kevin Regan10 Feb 2006 09:49 
Kevin Regan10 Feb 2006 09:50 
Warren Young10 Feb 2006 10:59 
Kevin Regan10 Feb 2006 11:11 
Subject:Strange result from query::execute()?
From:Kevin Regan (k.re@f5.com)
Date:02/10/2006 09:49:22 AM
List:com.mysql.lists.plusplus

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