From: Jonathan W. <co...@co...> - 2003-09-11 09:14:02
|
On Tue, Sep 09, 2003 at 03:53:02PM +0100, Brian Butcher wrote: > The following code appends the two queries rather than creates two distinct > queries. > > mysqlcppapi::Query query = con.create_Query(); > query << "UPDATE W32 SET who=who2"; > con.create_Query(); > query << "UPDATE B32 SET who=who2"; > cout << "Query: " << query.preview() << endl; > > ie it generates: > Query: UPDATE W32 SET who=who2UPDATE B32 SET who=who2 I've submitted a patch for this first problem to the SF patch manager: https://sf.net/tracker/index.php?func=detail&aid=804260&group_id=7869&atid=307869 Tested by modifying the reference_counting.cc file to be similar to the example code above. With this patch the queries were not run together. jon -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety" - Benjamin Franklin |