| 484 | } |
| 485 | |
| 486 | void bind_int ( |
| 487 | unsigned long parameter_id, |
| 488 | const int& item |
| 489 | ) |
| 490 | { |
| 491 | // make sure requires clause is not broken |
| 492 | DLIB_ASSERT(1 <= parameter_id && parameter_id <= get_max_parameter_id(), |
| 493 | "\t void statement::bind_int()" |
| 494 | << "\n\t Invalid parameter id." |
| 495 | << "\n\t parameter_id: " << parameter_id |
| 496 | << "\n\t get_max_parameter_id(): " << get_max_parameter_id() |
| 497 | << "\n\t this: " << this |
| 498 | ); |
| 499 | |
| 500 | reset(); |
| 501 | int status = sqlite3_bind_int(stmt, parameter_id, item); |
| 502 | |
| 503 | if (status != SQLITE_OK) |
| 504 | { |
| 505 | throw sqlite_error(sqlite3_errmsg(db.get())); |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | void bind_int64 ( |
| 510 | unsigned long parameter_id, |
nothing calls this directly
no test coverage detected