Bugs item #949366, was opened at 2004-05-06 18:06
Message generated for change (Settings changed) made by redi
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107869&aid=949366&group_id=7869
Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Philipp Berndt (pberndt)
Assigned to: Jonathan Wakely (redi)
Summary: Query::operator=(const Query& src) is broken
Initial Comment:
Query::operator=(const Query& src) is broken
more precisely
SQLQuery::operator=(const SQLQuery& src) is broken.
example:
Query query = con->create_Query();
query << "SELECT * from foo";
Result res = query.store ();
// now reuse variables
query = con->create_Query();
query << "SELECT * from bar";
cout << query.preview () << endl;
yields
"SELECT * from fooSELECT * from bar"
----------------------------------------------------------------------
Comment By: Jonathan Wakely (redi)
Date: 2004-05-07 13:41
Message:
Logged In: YES
user_id=426241
This has been fixed in CVS since October, along with some
other issues with the SQLQuery default ctor and copy ctor.
You should be able to take the latest version of
sql_query.cc and use it with the 1.9.3 release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107869&aid=949366&group_id=7869
|