api | api | |||
---|---|---|---|---|
skipping to change at line 753 | skipping to change at line 753 | |||
* with different parameters. | * with different parameters. | |||
*/ | */ | |||
enum Type { Simple }; | enum Type { Simple }; | |||
/** | /** | |||
* Destroys the statement instance if no other references ex ist. | * Destroys the statement instance if no other references ex ist. | |||
* | * | |||
* Each statement object uses a reference counter to remembe r if the | * Each statement object uses a reference counter to remembe r if the | |||
* internal variables are shared with other objects. If this isn't the | * internal variables are shared with other objects. If this isn't the | |||
* case or if this object is the last one referencing the va riables, | * case or if this object is the last one referencing the va riables, | |||
* the object is cleanup up and the allocated memory freed. | * the object is cleaned up and the allocated memory freed. | |||
*/ | */ | |||
~Stmt() throw(); | ~Stmt() throw(); | |||
/** | /** | |||
* Copy constructor. | * Copy constructor. | |||
* | * | |||
* Enables the transfer of the internal state of an object \ a ref of the same | * Enables the transfer of the internal state of an object \ a ref of the same | |||
* type to this object. Both objects share the same variable s | * type to this object. Both objects share the same variable s | |||
* and the reference counter afterwards. The reference count er is | * and the reference counter afterwards. The reference count er is | |||
* incremented each time an object is copied and will be dec remented if | * incremented each time an object is copied and will be dec remented if | |||
skipping to change at line 1253 | skipping to change at line 1253 | |||
* be escaped as C++ style string. This string itself won't be modified | * be escaped as C++ style string. This string itself won't be modified | |||
* by this method. | * by this method. | |||
* | * | |||
* The escaped string will be written to the third parameter named | * The escaped string will be written to the third parameter named | |||
* \a to, which have to be also an C++ style string. After t ransforming | * \a to, which have to be also an C++ style string. After t ransforming | |||
* the input to an escaped string, the result may be more th en twice | * the input to an escaped string, the result may be more th en twice | |||
* the size of the original input. The additional escape seq uences | * the size of the original input. The additional escape seq uences | |||
* aren't stored in the database column so only the original string will | * aren't stored in the database column so only the original string will | |||
* be written to the disk. | * be written to the disk. | |||
* | * | |||
* A C++ reference of the third parameter containing the esc | * A C++ reference of the second parameter containing the es | |||
aped string | caped string | |||
* afterwards is also returned by this method to providing t | * afterwards is also returned by this method too, providing | |||
he possibility | the possibility | |||
* to write more elegant code. | * to write more elegant code. | |||
* | * | |||
* @param from Input string with which may contain dangerous characters | * @param from Input string with which may contain dangerous characters | |||
* @param to String instance where the escaped characters sh ould be written to | * @param to String instance where the escaped characters sh ould be written to | |||
* @return Reference to the second parameter containing the escaped characters | * @return Reference to the second parameter containing the escaped characters | |||
* @throws std::invalid_argument If the object was only init ialized by the default constructor | * @throws std::invalid_argument If the object was only init ialized by the default constructor | |||
* @throws OpenDBX::Exception If the underlying database lib rary returns an error | * @throws OpenDBX::Exception If the underlying database lib rary returns an error | |||
*/ | */ | |||
string& escape( const string& from, string& to ) throw( std: :exception ); | string& escape( const string& from, string& to ) throw( std: :exception ); | |||
End of changes. 2 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added | |||