\brief Copies UTF-8 text to 1-indexed query parameter. If NUL characters are present, they will still go in the DB and be successfully retrieved by ColumnString(); however, the behavior of these values with SQLite functions is undefined. When using the unsafe methods, the data must not be changed or freed until this statement is Reset() or finalized.
| 229 | /// When using the unsafe methods, the data must not be changed or |
| 230 | /// freed until this statement is Reset() or finalized. |
| 231 | void BindText(int parameter, const StringPiece& text) { |
| 232 | Update(sqlite3_bind_text64(stmt_, parameter, text.data(), text.size(), |
| 233 | SQLITE_TRANSIENT, SQLITE_UTF8), |
| 234 | parameter); |
| 235 | size_ += text.size(); |
| 236 | } |
| 237 | void BindText(const char* parameter, const StringPiece& text) { |
| 238 | BindText(GetParameterIndex(parameter), text); |
| 239 | } |