Closed GoogleCodeExporter closed 9 years ago
Rosta has patch to conditionally work around this for newer versions of mysql++.
Original comment by jonas.fonseca
on 25 Oct 2007 at 3:39
Original comment by jonas.fonseca
on 2 Nov 2007 at 9:58
Since the MCS really doesn't have any need for using the template interface
(with
%0:...) it might be better to just use the simpler "string composing" interface.
The above example would end up being:
mysqlpp::Query q = con.query();
q << "delete from mytable where myfield=" << some_value;
q.execute();
Where quoting can be performed by putting mysqlpp::quote into the stream:
mysqlpp::Query q = con.query();
q << "delete from mytable where myfield=" mysqlpp::quote << some_value;
q.execute();
Original comment by jonas.fonseca
on 2 Nov 2007 at 1:18
Patch that replaces all template queries with normal queries.
Original comment by jonas.fonseca
on 5 Nov 2007 at 7:50
Attachments:
The above patch is buggy since the moteselect query in Host::findOrCreateMote()
is
reused and only template queries support this. A newer version has been pushed
to the
next branch of the public remote-mci repository at repo.or.cz. The head commit
is
attached here, it however depends on two cleanup commits.
Original comment by jonas.fonseca
on 6 Nov 2007 at 1:26
Attachments:
The fix was queued in the "next" branch of the remote-mci repository
Original comment by jonas.fonseca
on 7 Nov 2007 at 7:30
Original comment by jonas.fonseca
on 12 Nov 2007 at 9:28
This has been merged as of commit ed053c00d3a35bde42521c6f7bb9cb9ee2b82b44 ...
Original comment by jonas.fonseca
on 14 Nov 2007 at 8:45
Original issue reported on code.google.com by
jonas.fonseca
on 28 Aug 2007 at 2:27