From: Warren Young Date: July 16 2007 2:35pm Subject: Re: Weird parsing of templated query List-Archive: http://lists.mysql.com/plusplus/6815 Message-Id: <469B8230.2070002@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Steven Van Ingelgem wrote: > It would be ok however if I could pass a vector. But not > entirely > happy with it... Because I would like to use also named templated values. > And what if I want to bind parameters not in a logical order? I've got it: you want to call the execute(SQLQueryParams&) et al. overloads. They're not documented, but they're trivial; just look at them in lib/query.cpp. They're removed right now in svn, but I can see that we're just trying to reinvent the need for them. I guess I'll just put them back. Meanwhile, use them in good health. > Maybe you could add some feature for MySQL 5+ (prepared statements are > possible from then right?) where you could build a prepared statement? This is orthogonal to the current discussion. It's already on the Wishlist, but even if it existed now, it wouldn't solve your problem.