| 353 | } |
| 354 | |
| 355 | void Update(int rc, int parameter) { |
| 356 | // Binding strings can fail if they exceed length limit. |
| 357 | if (TF_PREDICT_FALSE(rc != SQLITE_OK)) { |
| 358 | if (bind_error_ == SQLITE_OK) { |
| 359 | bind_error_ = rc; |
| 360 | bind_error_parameter_ = parameter; |
| 361 | } |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | int GetParameterIndex(const char* parameter) { |
| 366 | int index = sqlite3_bind_parameter_index(stmt_, parameter); |