From: SourceForge.net <no...@so...> - 2005-09-03 22:10:53
|
Feature Requests item #1164293, was opened at 2005-03-16 08:53 Message generated for change (Comment added) made by redi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=357869&aid=1164293&group_id=7869 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Jonathan Wakely (redi) Summary: Prepared Statements & Escaping Initial Comment: Hi, I was wondering if the following 2 items are planned on being added to the API 1. prepared statements 2. escaping of values for a query (if this is done somewhere, and I can't find it, could you please describe it in the documentation?) Providing a valid email address per the instructions... jpellico [at] gmail.com ---------------------------------------------------------------------- >Comment By: Jonathan Wakely (redi) Date: 2005-09-03 22:10 Message: Logged In: YES user_id=426241 Forgot to say, the new function will be in 2.0.0 (but isn't in the current 2.0.0RC1 package) ---------------------------------------------------------------------- Comment By: Jonathan Wakely (redi) Date: 2005-09-03 22:09 Message: Logged In: YES user_id=426241 I've just checked in a function to escape a string, into string_utils.h std::string mysqlcppapi::escape(const std::string&) ---------------------------------------------------------------------- Comment By: Jonathan Wakely (redi) Date: 2005-03-16 10:21 Message: Logged In: YES user_id=426241 1. I have no plans for this at the moment, simply because I don't have the time to write it. 2. FieldType::sql(const std::string& val) will escape val if it decides the data needs escaping, which is true for string field-types. It also adds quotes. The escaping could/should be broken out into a separate function that users can call. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=357869&aid=1164293&group_id=7869 |