From: SourceForge.net <no...@so...> - 2003-09-11 09:06:02
|
Patches item #804260, was opened at 2003-09-11 09:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=307869&aid=804260&group_id=7869 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jonathan Wakely (redi) Assigned to: Nobody/Anonymous (nobody) Summary: Copy SQL statement in SQLQuery Initial Comment: This patch copies the contents of the stringstream buffer (i.e. the SQL statement) in the SQLQuery copy constructor and assigment operator. This allows the following: Query query = conn.create_Query(); query << first_sql_statement; // ... query = conn.create_Query(); // (1) query << second_sql_statement; // ... currently the two statements would be run together because the contents of the stringstream are not cleared by the assigment on the line marked (1). I've also explicitly initialised all members in the constructors and (arguably) improved my comment about the std::ios virtual base class and calling init(). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=307869&aid=804260&group_id=7869 |